FieldModel.of constructor

FieldModel.of(
  1. FieldModel another
)

Constructs a new instance of FieldModel, from the fields of another instance. Throws if the conversion fails.

Implementation

factory FieldModel.of(
  FieldModel another,
) {
  try {
    return ofOrNull(another)!;
  } catch (e) {
    assert(false, '$FieldModel.of: $e');
    rethrow;
  }
}