toModel method

FutureOr<M> toModel()

Converts the form group to a model of type M.

Implementation

FutureOr<M> toModel() {
  if (M == Map<String, dynamic>) {
    return getRawValue() as M;
  }
  throw UnsupportedError(
    'toModel() não implementado para $runtimeType. '
        'Implemente ou use FormGroup<Map<String, dynamic>>.',
  );
}