Implementation
@override
Reservation get model {
final isValid = !currentForm.hasErrors && currentForm.errors.isEmpty;
if (!isValid) {
debugPrintStack(
label:
'[${path ?? 'ReservationForm'}]\nāā Avoid calling `model` on invalid form. Possible exceptions for non-nullable fields which should be guarded by `required` validator.');
}
return Reservation(
uid: _uidValue,
subjectUid: _subjectUidValue,
objectType: _objectTypeValue,
objectUid: _objectUidValue,
reservedDateTimes: _reservedDateTimesValue,
reservationState: _reservationStateValue,
createdAt: _createdAtValue,
updatedAt: _updatedAtValue,
filePaths: _filePathsValue);
}