This repository was archived by the owner on Dec 27, 2024. It is now read-only.
0.18.0
What's New?
Models fromJson now supports an optional third parameter, options, which takes an IFromJsonOptions. Currently you can only set sparse. If sparse is set to true, only the json fields passed into fromJson will be included in the resulting model. The model will, however, still have all of its expected methods and functionality.
This feature was introduced to help in situations where you need to convert JSON field names to Model property names, but you don't want the resulting model to have any properties that weren't defined by the JSON input.