toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.starRating != null) {
json[r'starRating'] = this.starRating;
} else {
json[r'starRating'] = null;
}
if (this.address != null) {
json[r'address'] = this.address;
} else {
json[r'address'] = null;
}
if (this.coordinates != null) {
json[r'coordinates'] = this.coordinates;
} else {
json[r'coordinates'] = null;
}
json[r'imageUrls'] = this.imageUrls;
json[r'amenityGroups'] = this.amenityGroups;
if (this.contact != null) {
json[r'contact'] = this.contact;
} else {
json[r'contact'] = null;
}
if (this.displayGroup != null) {
json[r'displayGroup'] = this.displayGroup;
} else {
json[r'displayGroup'] = null;
}
return json;
}