Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface JsonStringifierParserCommonContext<T>

Common context properties used during serialization and deserialization.

Type parameters

  • T

Hierarchy

Index

Properties

Optional decoratorsEnabled

decoratorsEnabled: {}

Property whose keys are the decorators name that will be enabled/disabled during serialization/deserialization.

Type declaration

  • [key: string]: boolean

Optional features

features: {}

Property that defines features to set for ObjectMapper, JsonStringifier and JsonParser.

Type declaration

Optional forType

forType: Map<ClassType<any>, T>

Property whose keys are JavaScript Classes and its values are contexts to be used only for that JavaScript Classes.

More specific contexts can be nested one inside the other. In this way, specific contexts can be applied to a JavaScript Class only if the nested JavaScript Class is found as one of the values of the parent JavaScript Class properties.

Optional withContextGroups

withContextGroups: string[]

List of context groups used to serialize/deserialize JSON objects.

Optional withViews

withViews: () => ClassType<any>[]

List of views (see JsonView) used to serialize/deserialize JSON objects.

Type declaration

Generated using TypeDoc