ofOrNull static method

DataRefModel? ofOrNull(
  1. DataRefModel? other
)

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

Implementation

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