resolveEntityInstance property
Object?
resolveEntityInstance
Returns an entity instance.
- If it's an EntityReference returns EntityReference.entity.
- If ![isEntityIDType] returns
this
object. - Otherwise returns
null
.
Implementation
Object? get resolveEntityInstance {
var self = this;
if (self is EntityReference) {
return self.entity;
} else if (self is EntityReferenceList) {
return self.entities;
} else {
return (!isEntityIDType ? self : null);
}
}