toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = Map<String, dynamic>();
data['neighborhood'] = this.neighborhood;
data['building'] = this.building;
data['province'] = this.province;
data['countryCode'] = this.countryCode;
data['city'] = this.city;
data['citycode'] = this.citycode;
data['district'] = this.district;
data['adcode'] = this.adcode;
if (this.streetNumber != null) {
data['streetNumber'] = this.streetNumber!.toJson();
}
data['country'] = this.country;
data['township'] = this.township;
data['towncode'] = this.towncode;
return data;
}