Skip to content

JsonSerializer

@tsed/json-mapper

Usage

typescript
import { JsonSerializer } from "@tsed/json-mapper";

See /packages/specs/json-mapper/src/types/domain/JsonSerializer.ts.

Overview

ts
class JsonSerializer extends JsonMapperCompiler<JsonSerializerOptions> {
    constructor();
    map(input: any, options?: JsonSerializerOptions): any;
    protected alterValue(schemaId: string, value: any, options: JsonSerializerOptions): any;
    protected createMapper(model: Type<any>, id: string, groups: false | string[]): string;
    
    
    
    
    
    
}

map

ts
map(input: any, options?: JsonSerializerOptions): any;

protected alterValue

ts
protected alterValue(schemaId: string, value: any, options: JsonSerializerOptions): any;

protected createMapper

ts
protected createMapper(model: Type<any>, id: string, groups: false | string[]): string;

Released under the MIT License.