fromJson static method

RecordKey? fromJson(
  1. dynamic json, {
  2. String? fallbackDomainId,
})

Implementation

static RecordKey? fromJson(json, {String? fallbackDomainId}) {
  if (json == null) return null;
  if (json is RecordKey) return json;
  if (json is MKey) return json.recordKey;
  final _json = "$json";
  if (_json.contains("/")) {
    return MKey.parsed("$json")!.recordKey;
  } else {
    return _parse(_json, fallbackDomainId: fallbackDomainId);
  }
}