DataRefModel.from constructor

DataRefModel.from(
  1. BaseModel another
)

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

Implementation

factory DataRefModel.from(
  BaseModel another,
) {
  try {
    return fromOrNull(another)!;
  } catch (e) {
    assert(false, '$DataRefModel.from: $e');
    rethrow;
  }
}