Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface JsonPropertyOptions

Decorator options for JsonProperty.

Hierarchy

Index

Properties

Optional access

Property that may be used to change the way visibility of accessors (getter, field-as-getter) and mutators (constructor parameter, setter, field-as-setter) is determined.

default

JsonPropertyAccess.READ_WRITE

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 required

required: boolean

Property that indicates whether a value (which may be explicit null) is expected for property during deserialization or not.

default

false

Optional value

value: any

Defines name of the logical property.

Generated using TypeDoc