-
Notifications
You must be signed in to change notification settings - Fork 2
Home
JSONModelKit is an API centric mapping framework that uses, JSON or Plist, mapping files to define a model against an arbitrary dictionary. At build time, the library will generate the model files based on the definitions, and add them to the project automatically, or update any existing files.
By reducing the focus on the model layer itself, and keeping it continuously in sync with an API response in a single place, we can now treat the model as just a "data bucket", and extend it as needed. It comes really handy when implementing MVVM as part of a project's architecture, as it basically reduces the model(s) to ingestible wrapper(s) around dictionary data.
- Auto-Model Generation:
- Define model using .json or .plists
- Automatic import @ build time
- Optional & Non-Optional Property Mapping:
- String, Int, Double, Float, Bool, Array, Dictionary
- Collections Types: Array, Dictionary
- Structs, Enums, Closures, Tuples via Transformations
- Supports Nested Types
- Mapping Nested Values
- Default Values
- Integrated Inheritance
Below is a list of examples to showcase the features in JSONModelKit. Each provides an overview on how to setup the model mapping file, and short examples of the outputs generated by the pre-packaged script within the framework.
JSONModelKit is released under the MIT license. See License for details.
A Good Day Production
LinkedIn | Twitter @AntonTheDev