Change
* Added a paramater, `only_columns=True`, to `Model.deserialize` for filtering data to only data that pertains to columns. Up to now, `deserialize` for any class provided a generic means to convert JSON data into dictionaries with the option of converting the data from camel case to snake case. With this added parameter, `only_columns=True`, it is slightly easier to add dictionary data to create a model.
... python
example: id, and long_name are columns, other is something else
data = {
"id": 1,
"longName": "this is a name",
"other": "This is a test",
}
this would fail because 'other' is not a column
my_object = MyModel(
**MyModel.deserialize(data)
)
this would work due to the only_columns=True
my_object = MyModel(
**MyModel.deserialize(data, only_columns=True)
)
...