toJson method

Map<String, dynamic> toJson()

Implementation

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