ReferencedModel.from constructor
ReferencedModel.from(
- BaseModel another
Constructs a new instance of ReferencedModel,
from the fields of another
instance. Throws if the conversion fails.
Implementation
factory ReferencedModel.from(
BaseModel another,
) {
try {
return fromOrNull(another)!;
} catch (e) {
assert(false, '$ReferencedModel.from: $e');
rethrow;
}
}