toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return <String, dynamic>{
    'province': province.map((x) => x.toMap()).toList(),
    'zone': zone.map((x) => x.toMap()).toList(),
    'district': district.map((x) => x.toMap()).toList(),
    'localLevel': localLevel.map((x) => x.toMap()).toList(),
  };
}