<PackageReference Include="NJsonSchema" Version="9.10.34" />

JsonInheritanceConverter

Defines the class as inheritance base class and adds a discriminator property to the serialized object.

Initializes a new instance of the JsonInheritanceConverter class.

public JsonInheritanceConverter(string discriminator)

Initializes a new instance of the JsonInheritanceConverter class.

public JsonInheritanceConverter(string discriminator, bool readTypeProperty)

Initializes a new instance of the JsonInheritanceConverter class.

public JsonInheritanceConverter(Type baseType)

Initializes a new instance of the JsonInheritanceConverter class which only applies for the given base type.

public JsonInheritanceConverter(Type baseType, string discriminator)

Initializes a new instance of the JsonInheritanceConverter class which only applies for the given base type.