The initial attributes for the resource. Those attributes are in force to defaults()
Protected
validationThis method can do 3 different things:
It's recommended to use this method instead of accessing to attr attribute directly. This allows you to execute logic before and after setting or reading attributes. Also, instead of creating 100 setters and getters, we use a single attr() method
Optional
attrName: stringThe attribute name that we want to read or set
Optional
value: anyThe attribute value that we want to set for "attrName"
Retrieves the base resource url. Override it using your base endpoint for your resource.
NOTE: You need to define a baseEndpoint method in your entities in order to be able to sync with a backend endpoint A base endpoint for a RESTful endpoint look like: return "https://www.an-api.com/v1/users"
Persists the local state into the origin
Static
configureConfigures Sdkzer constants that determine the behaviour of Sdkzer in all classes that extend from Sdkzer in the current scope.
The configuration options
Static
fetchStatic
fetchStatic
parseGenerated using TypeDoc
Creates an instance of a model entity with an API to communicate with a resource (http RESTful resource)