save method
Implementation
Future<bool> save() async {
if (plate.length < 6) return false;
return await send(
UServices.parking.createParkingSubscription(
p: UParkingSubscriptionCreateParams(
parkingId: parking?.id ?? "",
licencePlate: plate,
vehicleType: vehicleType.number,
tags: <int>[duration.number],
customerName: nameController.text.nullIfEmpty(),
customerPhoneNumber: phoneController.trimmedLatin().nullIfEmpty(),
price: numOf(priceController) ?? 0,
),
),
read,
) !=
null;
}