FMAddress.fromJSON constructor
FMAddress.fromJSON(
- Map<String, dynamic> data
)
Implementation
factory FMAddress.fromJSON(Map<String, dynamic> data) {
return FMAddress(
state: '${data['state'] ?? ''}',
suburb: '${data['suburb'] ?? ''}',
county: '${data['county'] ?? ''}',
country: '${data['country'] ?? ''}',
postcode: '${data['postcode'] ?? ''}',
iso: '${data['ISO3166-2-lvl4'] ?? ''}',
residential: '${data['residential'] ?? ''}',
countryCode: '${data['country_code'] ?? ''}',
stateDistrict: '${data['state_district'] ?? ''}',
);
}