Place.fromJson constructor

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

Implementation

Place.fromJson(Map<String, dynamic> json) {
  if (json["id"] is int) {
    id = json["id"];
  }
  if (json["street1"] is String) {
    street1 = json["street1"];
  }
  if (json["zip"] is String) {
    zip = json["zip"];
  }
  if (json["city"] is String) {
    city = json["city"];
  }
  if (json["state"] is String) {
    state = json["state"];
  }
  if (json["country"] is String) {
    country = json["country"];
  }
  countryCode = json["countryCode"];
  if (json["phone"] is String) {
    phone = json["phone"];
  }
  if (json["lat"] is double) {
    lat = json["lat"];
  }
  if (json["lng"] is double) {
    lng = json["lng"];
  }
}