toJson method

Map<String, dynamic> toJson()

Implementation

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