toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.roomGroupKey != null) {
json[r'roomGroupKey'] = this.roomGroupKey;
} else {
json[r'roomGroupKey'] = null;
}
json[r'name'] = this.name;
if (this.description != null) {
json[r'description'] = this.description;
} else {
json[r'description'] = null;
}
json[r'beds'] = this.beds;
if (this.maxOccupancy != null) {
json[r'maxOccupancy'] = this.maxOccupancy;
} else {
json[r'maxOccupancy'] = null;
}
if (this.sizeSquareMeters != null) {
json[r'sizeSquareMeters'] = this.sizeSquareMeters;
} else {
json[r'sizeSquareMeters'] = null;
}
json[r'amenities'] = this.amenities;
json[r'imageUrls'] = this.imageUrls;
json[r'roomIndex'] = this.roomIndex;
if (this.adultsCount != null) {
json[r'adultsCount'] = this.adultsCount;
} else {
json[r'adultsCount'] = null;
}
if (this.childrenCount != null) {
json[r'childrenCount'] = this.childrenCount;
} else {
json[r'childrenCount'] = null;
}
if (this.childrenAges != null) {
json[r'childrenAges'] = this.childrenAges;
} else {
json[r'childrenAges'] = null;
}
return json;
}