ModelJsNavigator.from constructor

ModelJsNavigator.from(
  1. BaseModel another
)

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

Implementation

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