from static method
Identifies format and parses to a ExtendedType instance.
Implementation
static ETEntityReference? from(dynamic json) {
if (json == null) return null;
if (json is ETEntityReference) return json;
if (json is String) return ETEntityReference.parse(json);
if (json is List) {
var type = parseString(json[0]);
var id = parseInt(json[1]);
if (type != null && id != null) {
return ETEntityReference(type, id);
}
}
return null;
}