PolymorphicDiscriminator interface
Used to disambiguate discriminated type unions. For example, if response can have many shapes but also includes a 'kind' field (or similar), that field can be used to determine how to deserialize the response to the correct type.
Properties
client |
Name to use on the resulting object instead of the original property name.
Useful since the JSON property could be difficult to work with.
For example: For a field received as |
serialized |
Name of the discriminant property in the original JSON payload, e.g. |
Property Details
clientName
Name to use on the resulting object instead of the original property name.
Useful since the JSON property could be difficult to work with.
For example: For a field received as @odata.kind
, the final object could instead include a property simply named kind
.
clientName: string
Property Value
string
serializedName
Name of the discriminant property in the original JSON payload, e.g. @odata.kind
.
serializedName: string
Property Value
string