In the application I'm developing using Swift, I need to have access to a locally persisted data entity, this entity will be built through a Factory based on data probably obtained through a request and return in JSON, through a process of authentication on a remote server and so stored locally to avoid constant queries.
How should such local persistence be done?