toJson method

Map<String, dynamic> toJson()

Implementation

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