HomeAgency.fromJson constructor

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

Implementation

HomeAgency.fromJson(Map<String, dynamic> json) {
  id = json["id"];
  uuid = json["uuid"];
  slug = json["slug"];
  description = json["description"];
  facebook = json["facebook"];
  twitter = json["twitter"];
  instagram = json["instagram"];
  formattedAddress = json["formattedAddress"];
  createdAt = json["createdAt"];
  updatedAt = json["updatedAt"];
  status = json["status"];
  ratings = json["ratings"];
  logo = json["logo"] == null ? null : HomeAgencyLogo.fromJson(json["logo"]);
  subscriptionOwner = json["subscriptionOwner"] == null
      ? null
      : HomeAgencySubscriptionOwner.fromJson(json["subscriptionOwner"]);
  city = json["city"] == null ? null : HomeAgencyCity.fromJson(json["city"]);
}