Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface JsonSerializeOptions

Decorator options for JsonSerialize.

Hierarchy

Index

Properties

Optional contentUsing

contentUsing: (obj: any, context?: JsonStringifierTransformerContext) => any

Serializer function to use for serializing contents (elements of a Iterables and values of Maps) of decorated property.

param
param

Type declaration

Optional contextGroups

contextGroups: string[]

Property that defines whether this decorator is part of a context group or multiple groups.

Optional enabled

enabled: boolean

Property that defines whether this decorator is active or not.

default

true

Optional keyUsing

keyUsing: (key: any, context?: JsonStringifierTransformerContext) => any

Serializer function to use for serializing Map of Object Literal keys of decorated property.

param
param

Type declaration

Optional nullsUsing

nullsUsing: (context?: JsonStringifierTransformerContext) => any

Serializer function to use for serializing nulls for properties that are decorated.

param

Type declaration

Optional using

using: (obj: any, context?: JsonStringifierTransformerContext) => any

Serializer function to use for serializing associated value.

param
param

Type declaration

Generated using TypeDoc