GeocodeAddress.fromJson constructor

GeocodeAddress.fromJson(
  1. Map<String, dynamic> json
)

Implementation

GeocodeAddress.fromJson(Map<String, dynamic> json) {
  neighborhood = json['neighborhood'];
  postcode = json['postcode'];
  building = json['building'];
  province = json['province'];
  level = json['level'];
  formattedAddress = json['formattedAddress'];
  location = json['location'] != null
      ? LatLng.fromJson(json['location'])
      : null;
  city = json['city'];
  citycode = json['citycode'];
  district = json['district'];
  adcode = json['adcode'];
  township = json['township'];
  country = json['country'];
}