import 'package:json_annotation/json_annotation.dart'; import '../num_converter.dart'; import '../string_converter.dart'; part 'district_rsp.g.dart'; @JsonSerializable(converters: [NumConverter(), StringConverter()]) class DistrictRsp { /* "id": 6, "parentCode": "0", "createTime": null, "ucode": "210000000000", "ulevel": 1, "uname": "辽宁省" */ /// 编号 final num? id; /// 等级 1-省,2-市,3-县,4-乡,5-村 final num? ulevel; final String? parentCode; final String? uname; final String? ucode; const DistrictRsp({ this.id, this.ulevel, this.parentCode, this.uname, this.ucode, }); factory DistrictRsp.fromJson(Map json) => _$DistrictRspFromJson(json); Map toJson() => _$DistrictRspToJson(this); }