import 'package:json_annotation/json_annotation.dart'; import '../num_converter.dart'; import '../string_converter.dart'; part 'dict_rsp.g.dart'; /// 字典 @JsonSerializable(converters: [NumConverter(), StringConverter()]) class DictRsp { final String? dictType; //字典类型 final String? value; //字典键值 final String? label; //字典标签 const DictRsp({ this.dictType, this.value, this.label, }); factory DictRsp.fromJson(Map json) => _$DictRspFromJson(json); Map toJson() => _$DictRspToJson(this); } /// 土壤信息 @JsonSerializable(converters: [NumConverter(), StringConverter()]) class TrxxRsp { /// ID final num? id; /// 土类名称 final String? tlmc; /// 土类编码 final String? tlbmCode; const TrxxRsp({ this.id, this.tlmc, this.tlbmCode, }); factory TrxxRsp.fromJson(Map json) => _$TrxxRspFromJson(json); Map toJson() => _$TrxxRspToJson(this); } /// 粮食信息 @JsonSerializable(converters: [NumConverter(), StringConverter()]) class LsxxRsp { /// ID final num? id; /// 细类名称 final String? xilmc; /// 细类编码 final String? xilbmCode; const LsxxRsp({ this.id, this.xilmc, this.xilbmCode, }); factory LsxxRsp.fromJson(Map json) => _$LsxxRspFromJson(json); Map toJson() => _$LsxxRspToJson(this); }