Initialize with a ModelValidator instance.
Transform obj to an instance of type T.
The object, which will be validated using a ModelValidator instance, and then transformed into an entity of type T.
The constructor of a Table-decorated class. obj will be transformed into one of these entities.
A promise that will be resolved with an EntityType instance, or rejected with a validation error if the transformation is not possible.
Generated using TypeDoc
Helper class for converting plain objects to Entities (Table-decorated classes).