toMap method
Implementation
Map<String, dynamic> toMap() => <String, dynamic>{
"parkingId": parkingId,
"userName": userName,
"password": password,
"tags": List<dynamic>.from(tags.map((int x) => x)),
"firstName": firstName,
"lastName": lastName,
"phoneNumber": phoneNumber,
"shiftTitle": shiftTitle,
"maxDiscountPercent": maxDiscountPercent,
"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)),
};