You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
592 B
26 lines
592 B
10 months ago
|
import 'package:huixiang/data/good_list.dart';
|
||
|
import 'package:huixiang/generated/json/base/json_field.dart';
|
||
|
import 'package:huixiang/generated/json/farmers.g.dart';
|
||
|
import 'dart:convert';
|
||
|
|
||
|
export 'package:huixiang/generated/json/farmers.g.dart';
|
||
|
|
||
|
@JsonSerializable()
|
||
|
class Farmers {
|
||
|
List<GoodList>? goodList = [];
|
||
|
String? typeName = '';
|
||
|
String? agriculturaListImg = '';
|
||
|
|
||
|
Farmers();
|
||
|
|
||
|
factory Farmers.fromJson(Map<String, dynamic> json) => $FarmersFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => $FarmersToJson(this);
|
||
|
|
||
|
@override
|
||
|
String toString() {
|
||
|
return jsonEncode(this);
|
||
|
}
|
||
|
}
|
||
|
|