Tries to deserialize given data as T, and throws an error if it's not possible or validation after conversion fails.
ValidationError when serialization or validation fails.
Optional
Generated using TypeDoc
Tries to deserialize given data as T, and throws an error if it's not possible or validation after conversion fails.
Throws
ValidationError when serialization or validation fails.