AddressComponent.fromJson constructor

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

Implementation

AddressComponent.fromJson(Map<String, dynamic> json) {
  neighborhood = json['neighborhood'];
  building = json['building'];
  province = json['province'];
  countryCode = json['countryCode'];
  city = json['city'];
  citycode = json['citycode'];
  district = json['district'];
  adcode = json['adcode'];
  streetNumber = json['streetNumber'] != null
      ? StreetNumber.fromJson(json['streetNumber'])
      : null;
  country = json['country'];
  township = json['township'];
  towncode = json['towncode'];
}