shouldSerializeFieldForDatabase method

bool shouldSerializeFieldForDatabase(
  1. bool serverCode
)

Returns true, if this field should be added to the serialization for the database. serverCode specifies if it's code on the server or client side. This method should only be called for server side code.

See also:

Implementation

bool shouldSerializeFieldForDatabase(bool serverCode) {
  return shouldPersist;
}