Address.fromJson constructor
Address.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Address.fromJson(Map<String, dynamic> json) {
return Address(
amenity: json['amenity'].toString(),
country: json['country'].toString(),
countryCode: json['country_code'].toString(),
isoLvl6: json['ISO3166-2-lvl6'].toString(),
isoLvl14: json['ISO3166-2-lvl4'].toString(),
neighbourHood: json['neighbourhood'].toString(),
postalCode: json['postcode'].toString(),
road: json['road'].toString(),
state: json['state'].toString(),
stateDistrict: json['state_district'].toString(),
town: json['town'].toString());
}