UHotelRoomResponse constructor

UHotelRoomResponse({
  1. required String id,
  2. required DateTime createdAt,
  3. required UHotelRoomJson jsonData,
  4. required List<int> tags,
  5. required String title,
  6. required int capacity,
  7. required double pricePerNight,
  8. required String hotelId,
  9. required List<String> adminUserIds,
  10. String? roomNumber,
  11. int quantity = 1,
  12. bool isAvailable = true,
  13. UUserResponse? creator,
  14. String? creatorId,
  15. UHotelResponse? hotel,
  16. List<UHotelReservationResponse>? reservations,
  17. List<UMediaResponse>? media,
})

Implementation

UHotelRoomResponse({
  required this.id,
  required this.createdAt,
  required this.jsonData,
  required this.tags,
  required this.title,
  required this.capacity,
  required this.pricePerNight,
  required this.hotelId,
  required this.adminUserIds,
  this.roomNumber,
  this.quantity = 1,
  this.isAvailable = true,
  this.creator,
  this.creatorId,
  this.hotel,
  this.reservations,
  this.media,
});