VillaListings.fromJson constructor
VillaListings.fromJson(
- Map<String, dynamic> json
)
Implementation
VillaListings.fromJson(Map<String, dynamic> json) {
if (json['properties'] != null) {
properties = <Properties>[];
json['properties'].forEach((v) {
properties!.add(Properties.fromJson(v));
});
}
discountMessage = json['discount_message'];
discountMethod = json['discount_method'];
paginate =
json['paginate'] != null ? Paginate.fromJson(json['paginate']) : null;
meta = json['meta'] != null ? Meta.fromJson(json['meta']) : null;
}