toMap method
Implementation
Map<String, dynamic> toMap() => <String, dynamic>{
"parkingId": parkingId,
"licencePlate": licencePlate,
"vehicleType": vehicleType,
"tags": List<dynamic>.from(tags.map((int x) => x)),
"customerName": customerName,
"customerPhoneNumber": customerPhoneNumber,
"price": price,
"startDate": startDate?.toIso8601String(),
"expiryDate": expiryDate?.toIso8601String(),
"dailyEntryLimit": dailyEntryLimit,
"officeHoursOnly": officeHoursOnly,
"detail1": detail1,
"detail2": detail2,
if (id != null) "id": id,
if (creatorId != null) "creatorId": creatorId,
if (adminUserIds != null) "adminUserIds": List<dynamic>.from(adminUserIds!.map((String x) => x)),
};