toJson method

Map<String, dynamic> toJson()

Implementation

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