deserialize
@tsed/json-mapper
Usage
typescript
import { deserialize } from "@tsed/json-mapper";Overview
ts
function deserialize<Model = any>(input: any, options?: JsonDeserializerOptions): Model;Description
Deserialize arbitrary data into the provided model type using the shared JsonDeserializer.
Example
ts
import {deserialize} from "@tsed/json-mapper";
const model = deserialize<UserModel>(payload, {type: UserModel, useAlias: true});