# PropertyDeserialize Decorator jsonMapper schema property deprecated

Module
import { PropertyDeserialize } from "@tsed/common"
Source/packages/common/src/jsonschema/decorators/propertyDeserialize.ts

# Overview

function PropertyDeserialize(fn: (value: any) => any): Function;

# Description

Call the function before property deserialization.

WARNING

This decorator will be removed in v6 in favor of from @tsed/json-mapper. For v5 user, use decorator from @tsed/common then in v6 switch to @tsed/schema.

# Example

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