Address.fromMap constructor

Address.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory Address.fromMap(Map<String, dynamic> map) {
  return Address(
    highway: map['highway'] ?? '',
    road: map['road'] ?? '',
    city: map['city'] ?? '',
    stateDistrict: map['state_district'] ?? '',
    state: map['state'] ?? '',
    postcode: map['postcode'] ?? '',
    country: map['country'] ?? '',
    countryCode: map['country_code'] ?? '',
  );
}