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 = []; String? typeName = ''; String? agriculturaListImg = ''; Farmers(); factory Farmers.fromJson(Map json) => $FarmersFromJson(json); Map toJson() => $FarmersToJson(this); @override String toString() { return jsonEncode(this); } }