ofOrNull static method

GenerateDartModel? ofOrNull(
  1. GenerateDartModel? other
)

Constructs a new instance of GenerateDartModel, from the fields of another instance. Returns null if another is null or if the conversion fails.

Implementation

@pragma('vm:prefer-inline')
static GenerateDartModel? ofOrNull(
  GenerateDartModel? other,
) {
  return fromJsonOrNull(other?.toJson());
}