toMap method
Implementation
Map<String, dynamic> toMap() => <String, dynamic>{
"parkingId": parkingId,
"licencePlate": licencePlate,
"tags": List<dynamic>.from(tags.map((int x) => x)),
"reason": reason,
"amount": amount,
"fromDate": fromDate?.toIso8601String(),
"toDate": toDate?.toIso8601String(),
"spotNumber": spotNumber,
"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)),
};