toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => <String, dynamic>{
  "id": id,
  "userName": userName,
  "bedTitle": bedTitle,
  "dormTitle": dormTitle,
  "startDate": startDate.toIso8601String(),
  "endDate": endDate.toIso8601String(),
  "rent": rent,
  "createdAt": createdAt.toIso8601String(),
};