# Decorator OnDeserialize

Decorator schema property
Module
import { OnDeserialize } from "@tsed/json-mapper"
Source/packages/json-mapper/src/decorators/onDeserialize.ts

# Overview

function OnDeserialize(cb: OnDeserializeCallback): PropertyDecorator;

# Description

Call the function before property deserialization.

# Example

class Model {
   @OnDeserialize(v => v + 1)
   property: string;
}
1
2
3
4

Other topics