toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  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;
  }
  if (this.description != null) {
    json[r'description'] = this.description;
  } else {
    json[r'description'] = 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;
  }
  return json;
}