toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => <String, dynamic>{
  "detail1": detail1,
  "detail2": detail2,
  "tags": List<dynamic>.from(tags.map((int x) => x)),
  "id": id,
  "creatorId": creatorId,
  "checkInDate": checkInDate.toIso8601String(),
  "checkOutDate": checkOutDate.toIso8601String(),
  "guestCount": guestCount,
  "userId": userId,
  "roomId": roomId,
  "totalPrice": totalPrice,
  "guestName": guestName,
  "guestPhone": guestPhone,
  "notes": notes,
  "penaltyPrecentEveryDate": penaltyPrecentEveryDate,
  "adminUserIds": adminUserIds == null ? <dynamic>[] : List<dynamic>.from(adminUserIds!.map((String x) => x)),
};