HomelidoProperty.fromJson constructor
HomelidoProperty.fromJson(
- Map<String, dynamic> json
)
Implementation
HomelidoProperty.fromJson(Map<String, dynamic> json) {
if (json["id"] is int) this.id = json["id"];
if (json["title"] is String) this.title = json["title"];
if (json["image"] is String) this.image = json["image"];
if (json["address"] is String) this.address = json["address"];
if (json["price"] is double) this.price = json["price"];
if (json["salePrice"] is double) this.salePrice = json["salePrice"];
if (json["bed"] is int) this.bed = json["bed"];
if (json["area"] is int) this.area = json["area"];
if (json["areaUnit"] is String) this.areaUnit = json["areaUnit"];
if (json["bathroom"] is int) this.bathroom = json["bathroom"];
if (json["currency"] is String) this.currency = json["currency"];
if (json["availableFrom"] is String)
this.availableFrom = json["availableFrom"];
if (json["propertyType"] is int) this.propertyType = json["propertyType"];
if (json['homelidoPropertyInfo'] != null)
homelidoPropertyInfo =
HomelidoPropertyInfo.fromJson(json['homelidoPropertyInfo']);
if (json["countryCode"] is String) this.countryCode = json["countryCode"];
if (json["countryName"] is String) this.countryName = json["countryName"];
}