UDormResponse constructor

UDormResponse({
  1. required String id,
  2. required DateTime createdAt,
  3. required UDormJson jsonData,
  4. required List<int> tags,
  5. required String title,
  6. required String cityCode,
  7. String? address,
  8. String? phoneNumber,
  9. List<String> adminUserIds = const <String>[],
  10. double averageScore = 0,
  11. int commentCount = 0,
  12. double? minMonthlyRent,
  13. int bedCount = 0,
  14. int availableBedCount = 0,
  15. UUserResponse? creator,
  16. String? creatorId,
  17. List<UDormRoomResponse>? rooms,
  18. List<UDormBedResponse>? beds,
  19. List<UCommentResponse>? comments,
  20. List<UMediaResponse>? media,
})

Implementation

UDormResponse({
  required this.id,
  required this.createdAt,
  required this.jsonData,
  required this.tags,
  required this.title,
  required this.cityCode,
  this.address,
  this.phoneNumber,
  this.adminUserIds = const <String>[],
  this.averageScore = 0,
  this.commentCount = 0,
  this.minMonthlyRent,
  this.bedCount = 0,
  this.availableBedCount = 0,
  this.creator,
  this.creatorId,
  this.rooms,
  this.beds,
  this.comments,
  this.media,
});