tryParse static method

Ref? tryParse(
  1. Object? json
)

Implementation

static Ref? tryParse(Object? json) {
  if (json is Map && json.length == 1 && json[jsonKey] is String) {
    return Ref(json[jsonKey] as String);
  }
  return null;
}