isEntityField property
bool
get
isEntityField
Returns true
if this Field
can be an entity field.
Usually an entity field can be used in a JSON
, toJson
and fromJson
.
Implementation
bool get isEntityField {
var ok = hasSetter || isFinal || type.isCollectionType;
if (ok) {
return !isJsonFieldHidden;
} else {
return isJsonFieldVisible;
}
}