toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'holder'] = this.holder;
    json[r'roomGuests'] = this.roomGuests;
  if (this.specialRequests != null) {
    json[r'specialRequests'] = this.specialRequests;
  } else {
    json[r'specialRequests'] = null;
  }
  if (this.specialRequestCodes != null) {
    json[r'specialRequestCodes'] = this.specialRequestCodes;
  } else {
    json[r'specialRequestCodes'] = null;
  }
  if (this.maxPrice != null) {
    json[r'maxPrice'] = this.maxPrice;
  } else {
    json[r'maxPrice'] = null;
  }
  return json;
}