JsonPolymorphicAttribute
When placed on a type, indicates that the type should be serialized polymorphically.
When set to true, instructs the deserializer to ignore any
unrecognized type discriminator id's and reverts to the contract of the base type.
Otherwise, it will fail the deserialization.
Gets or sets a custom type discriminator property name for the polymorhic type.
Uses the default '$type' property name if left unset.
Gets or sets the behavior when serializing an undeclared derived runtime type.
public JsonPolymorphicAttribute()