toJson method

Map<String, dynamic> toJson()

Implementation

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