Address.fromJson constructor

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

Implementation

factory Address.fromJson(Map<String, dynamic> json) {
  return Address(
    tramStop: json['tram_stop'] ?? "",
    road: json['road'] ?? "",
    neighbourhood: json['neighbourhood'] ?? "",
    city: json['city'] ?? "",
    state: json['state'],
    postcode: json['postcode'] ?? "",
    country: json['country'] ?? "",
    countryCode: json['country_code'] ?? "",
  );
}