shouldSerializeField method
Returns true, if this field should be added to the serialization.
serverCode
specifies if it's code on the server or client side.
See also:
Implementation
bool shouldSerializeField(bool serverCode) {
return scope == ModelFieldScopeDefinition.all;
}