ofOrNull static method

FieldModel? ofOrNull(
  1. FieldModel? other
)

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

Implementation

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