Initializes a new instance of the TomlPolymorphicTypeInfo<TBase> class.
public TomlPolymorphicTypeInfo(TomlSerializerOptions options, TomlTypeInfo<TBase>? baseTypeInfo, string? discriminatorPropertyName, IReadOnlyDictionary<string, TomlTypeInfo> derivedTypeInfoByDiscriminator)
The serializer options.
Optional base type metadata used when falling back to base types.
Optional discriminator key name. When null or empty, PolymorphismOptions is used.
A mapping from discriminator values to derived type metadata.