Address.fromJson constructor

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

Implementation

factory Address.fromJson(Map<String, dynamic> json) {
  return Address(
    country: json["country"],
    countryCode: json["country_code"],
    municipality: json["municipality"],
    city: json["city"],
    town: json["town"],
    village: json["village"],
    suburb: json["suburb"],
    neighbourhood: json["neighbourhood"],
    road: json["road"],
    houseNumber: json["house_number"],
    postcode: json["postcode"],
  );
}