The Modelmatic framework automates JSON encoding/decoding of Swift model objects. Instead of relying on hand-maintained mappings in each class, Modelmatic lets you define mappings in Xcode’s Core Data Model Editor.
https://github.com/AboutObjects/Modelmatic