district_rsp.dart 817 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import 'package:json_annotation/json_annotation.dart';
  2. import '../num_converter.dart';
  3. import '../string_converter.dart';
  4. part 'district_rsp.g.dart';
  5. @JsonSerializable(converters: [NumConverter(), StringConverter()])
  6. class DistrictRsp {
  7. /*
  8. "id": 6,
  9. "parentCode": "0",
  10. "createTime": null,
  11. "ucode": "210000000000",
  12. "ulevel": 1,
  13. "uname": "辽宁省"
  14. */
  15. /// 编号
  16. final num? id;
  17. /// 等级 1-省,2-市,3-县,4-乡,5-村
  18. final num? ulevel;
  19. final String? parentCode;
  20. final String? uname;
  21. final String? ucode;
  22. const DistrictRsp({
  23. this.id,
  24. this.ulevel,
  25. this.parentCode,
  26. this.uname,
  27. this.ucode,
  28. });
  29. factory DistrictRsp.fromJson(Map<String, dynamic> json) => _$DistrictRspFromJson(json);
  30. Map<String, dynamic> toJson() => _$DistrictRspToJson(this);
  31. }