model property

  1. @override
Reservation get model

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);
}