UHotelResponse constructor

UHotelResponse({
  1. required String id,
  2. required DateTime createdAt,
  3. required UHotelJson jsonData,
  4. required List<int> tags,
  5. required String title,
  6. required String cityCode,
  7. int stars = 0,
  8. String? address,
  9. String? phoneNumber,
  10. String? email,
  11. List<String> adminUserIds = const <String>[],
  12. double averageScore = 0,
  13. int commentCount = 0,
  14. double? minPricePerNight,
  15. int roomCount = 0,
  16. UUserResponse? creator,
  17. String? creatorId,
  18. List<UHotelRoomResponse>? rooms,
  19. List<UHotelReservationResponse>? reservations,
  20. List<UCommentResponse>? comments,
  21. List<UMediaResponse>? media,
})

Implementation

UHotelResponse({
  required this.id,
  required this.createdAt,
  required this.jsonData,
  required this.tags,
  required this.title,
  required this.cityCode,
  this.stars = 0,
  this.address,
  this.phoneNumber,
  this.email,
  this.adminUserIds = const <String>[],
  this.averageScore = 0,
  this.commentCount = 0,
  this.minPricePerNight,
  this.roomCount = 0,
  this.creator,
  this.creatorId,
  this.rooms,
  this.reservations,
  this.comments,
  this.media,
});