toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.roomIndex != null) {
json[r'roomIndex'] = this.roomIndex;
} else {
json[r'roomIndex'] = null;
}
json[r'guests'] = this.guests;
return json;
}