toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => <String, dynamic>{
  "id": id,
  "createdAt": createdAt.toIso8601String(),
  "jsonData": jsonData.toMap(),
  "tags": List<dynamic>.from(tags.map((int x) => x)),
  "title": title,
  "creator": creator?.toMap(),
  "creatorId": creatorId,
  "adminUserIds": List<dynamic>.from(adminUserIds.map((String x) => x)),
  "entrancePrice": entrancePrice,
  "hourlyPrice": hourlyPrice,
  "dailyPrice": dailyPrice,
};