ReferencedModel.of constructor

ReferencedModel.of(
  1. ReferencedModel another
)

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

Implementation

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