toMap method
Implementation
Map<String, dynamic> toMap() => <String, dynamic>{
"tags": List<dynamic>.from(tags.map((int x) => x)),
"id": id,
"startDate": startDate.toIso8601String(),
"endDate": endDate.toIso8601String(),
"userId": userId,
"bedId": bedId,
"deposit": deposit,
"rent": rent,
"penaltyPrecentEveryDate": penaltyPrecentEveryDate,
"detail1": detail1,
"detail2": detail2,
"creatorId": creatorId,
"adminUserIds": adminUserIds == null ? <dynamic>[] : List<dynamic>.from(adminUserIds!.map((String x) => x)),
};