TInstanceTypeSerialization Enumeration
Controls when the $type discriminator is emitted for polymorphic objects.
Syntax
Unit: Bcl.Json.Converters
Members
| Name | Value | Description |
|---|---|---|
| Always | 0 | Always emit the $type discriminator. |
| IfNeeded | 1 | Emit $type only when the runtime type differs from the declared type. |