toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['district'] = district;
data['address'] = address;
data['typecode'] = typecode;
data['uid'] = uid;
if (location != null) {
data['location'] = location!.toJson();
}
data['adcode'] =adcode;
data['name'] = name;
return data;
}