Address.fromJson constructor

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

Implementation

factory Address.fromJson(Map<String, dynamic> json) {
  log('jsoncity >> ${json['city']}');
  return Address(
    road: json['road'],
    borough: json['borough'],
    city: json['city'],
    municipality: json['municipality'],
    district: json['district'],
    state: json['state'],
    iso31662Lvl4: json['ISO3166-2-lvl4'],
    postcode: json['postcode'],
    country: json['country'],
    countryCode: json['country_code'],
    houseNumber: json['house_number'],
    town: json['town'],
  );
}