GenerateDartModel.from constructor

GenerateDartModel.from(
  1. BaseModel another
)

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

Implementation

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