AddressModel.fromJson constructor

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

Implementation

factory AddressModel.fromJson(Map<String, dynamic> json) => AddressModel(
    village: json["village"] ?? "",
    county: json["county"] ?? "",
    city: json["city"] ?? "",
    subDistrict: json["subdistrict"] ?? "",
    state: json["state"] ?? "",
    houseNumber: json["housenumber"] ?? "",
    country: json["country"] ?? "",
    locality: json["locality"] ?? "",
    postCode: json["postcode"] ?? "",
    countryCode: json["country_code"] ?? "");