GenerateDartModel.of constructor

GenerateDartModel.of(
  1. GenerateDartModel another
)

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

Implementation

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