12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- 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<String, dynamic> json) => _$DictRspFromJson(json);
- Map<String, dynamic> 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<String, dynamic> json) => _$TrxxRspFromJson(json);
- Map<String, dynamic> 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<String, dynamic> json) => _$LsxxRspFromJson(json);
- Map<String, dynamic> toJson() => _$LsxxRspToJson(this);
- }
|