Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface JsonTypeInfoOptions

Decorator options for JsonTypeInfo.

Hierarchy

Index

Properties

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

include

Specifies mechanism to use for including type metadata. Used when serializing, and expected when deserializing.

Optional property

property: string

Property names used when type inclusion method JsonTypeInfoAs.PROPERTY is used.

use

Specifies kind of type metadata to use when serializing type information for instances of decorated type and its subtypes; as well as what is expected during deserialization.

Generated using TypeDoc