UDormResponse constructor
UDormResponse({
- required String id,
- required DateTime createdAt,
- required UDormJson jsonData,
- required List<
int> tags, - required String title,
- required String cityCode,
- String? address,
- String? phoneNumber,
- List<
String> adminUserIds = const <String>[], - double averageScore = 0,
- int commentCount = 0,
- double? minMonthlyRent,
- int bedCount = 0,
- int availableBedCount = 0,
- UUserResponse? creator,
- String? creatorId,
- List<
UDormRoomResponse> ? rooms, - List<
UDormBedResponse> ? beds, - List<
UCommentResponse> ? comments, - 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,
});