Defines custom transformation logic when converting from a primitive to a class
The function used to perform the transformation
Transformation options
Marks property as excluded from the process of transformation. By default it excludes the property for both constructorToPlain and plainToConstructor transformations, however you can specify on which of transformation types you want to skip this property.
Marks property as included in the process of transformation. By default it includes the property for both constructorToPlain and plainToConstructor transformations, however you can specify on which of transformation types you want to skip this property.
Defines custom transformation logic when converting from a primitive to a class
The function used to perform the transformation
Transformation options
Transform the object from class to plain object and return only with the exposed properties.
Transform the object from class to plain object and return only with the exposed properties.
Converts an ordinary object and it's properties to instances of their respective classes
Transformation options
Deserializes given JSON string or primitive object to an object or an array of objects of the given class.
Deserializes given JSON string to an array of objects of the given class.
Hydrates an existing class instance with data from a plain object
An instance to fill
An object to get the data from
Transformation options
Hydrates many existing instances with data from plain objects
An array of instances to fill
An array of plain objects to get the data from
Transformation options
Hydrates an existing plain object with data from a class instance
An instance to get the data from
An object to fill
Transformation options
Hydrates an existing plain object with data from a class instance
An array of instances to get the data from
An array of objects to fill
Transformation options
Converts a class instance to a plain javascript object
An instance of T
Transformation options
Serializes given instance to a JSON string.
The instance to be serialized
Transformation options
Serializes an array of instances to a JSON string.
The instances to be serialized
Transformation options
Generated using TypeDoc
Class Decorator
Specifies the class of a property.