It would be nice to be able to instantiate a model with some fields the same way a dataclass can be created and be able to use it to output a JSON dict.
class MySuperModel(Object):
some_field: str = Property(String(enum=['foo', 'bar', 'baz']), required=True)
s = MySuperModel(some_field='foo')
print(s)
{
'some_field': 'foo'
}
It would be nice to be able to instantiate a model with some fields the same way a dataclass can be created and be able to use it to output a JSON dict.