Interface for capsuling validating for class's own properties
Converts the class instance to a plain object.
the plain object representation of the class.
Validates all properties of the class and throws if data is invalid
Static
Interface for capsuling validating for class's own properties