ofOrNull static method

  1. @pragma('vm:prefer-inline')
ReferencedModel? ofOrNull(
  1. ReferencedModel? other
)

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

Implementation

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