toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => <String, dynamic>{
  "id": id,
  "createdAt": createdAt.toIso8601String(),
  "tags": List<dynamic>.from(tags.map((int x) => x)),
  "parkingId": parkingId,
  "vehicleType": vehicleType,
  "entrancePrice": entrancePrice,
  "dayHourlyPrice": dayHourlyPrice,
  "nightHourlyPrice": nightHourlyPrice,
  "dailyCap": dailyCap,
  "weeklyPrice": weeklyPrice,
  "monthlyPrice": monthlyPrice,
  "quarterlyPrice": quarterlyPrice,
  "freeMinutes": freeMinutes,
  "nightStartHour": nightStartHour,
  "nightEndHour": nightEndHour,
  "holidayExtraPercent": holidayExtraPercent,
  "roundToFullHour": roundToFullHour,
  "perMinuteAfterFirstHour": perMinuteAfterFirstHour,
  "subscriptionDailyEntryLimit": subscriptionDailyEntryLimit,
  "subscriptionOfficeHoursOnly": subscriptionOfficeHoursOnly,
  "subscriptionExpiryReminderDays": subscriptionExpiryReminderDays,
  "creatorId": creatorId,
  "jsonData": jsonData?.toMap(),
  "creator": creator?.toMap(),
  "adminUserIds": List<dynamic>.from(adminUserIds.map((String x) => x)),
};