The resource object from the API.
Whether or not the resource exists on the server.
The time at which the model's data was last updated. Watching the value of this property is a fast way to retain/cache a subtree if data hasn't changed.
ProtectedstoreThe data store that this resource should be persisted to.
ProtectedapiConstruct a path to the API endpoint for this resource.
Get one of the model's attributes.
ProtectedcopySend a request to delete the resource.
Data to send along with the DELETE request.
Merge new attributes into this model locally.
The attributes to merge.
Merge new data into this model locally.
A resource object to merge into this model
ProtectedrawMerge new attributes into this model, both locally and with persistence.
The attributes to save. If a 'relationships' key exists, it will be extracted and relationships will also be saved.
The
Modelclass represents a local data resource. It provides methods to persist changes via the API.