toMap method
Implementation
Map<String, dynamic> toMap() => <String, dynamic>{
"id": id,
"createdAt": createdAt.toIso8601String(),
"tags": List<dynamic>.from(tags.map((int x) => x)),
"parkingId": parkingId,
"vehicleId": vehicleId,
"price": price,
"startDate": startDate.toIso8601String(),
"expiryDate": expiryDate.toIso8601String(),
"dailyEntryLimit": dailyEntryLimit,
"officeHoursOnly": officeHoursOnly,
"remainingDays": remainingDays,
"vehicle": vehicle?.toMap(),
"customerName": customerName,
"customerPhoneNumber": customerPhoneNumber,
"creatorId": creatorId,
"jsonData": jsonData?.toMap(),
"creator": creator?.toMap(),
"adminUserIds": List<dynamic>.from(adminUserIds.map((String x) => x)),
};