By using NSKeyedArchiver.archivedData, NSKeyedUnarchiver.unarchiveObject you can actually store the data as compressed zip in the device and recall/unzip them to your class structure

Model Class

 

Use With User Defaults (Local Storage)

 

Create the User Class And Store It