<PackageReference Include="System.Text.Json" Version="11.0.0-preview.6.26359.118" />

System.Text.Json.Serialization.Metadata.JsonTypeInfo<T>

public sealed class JsonTypeInfo<T> : JsonTypeInfo
Provides JSON serialization-related metadata about a type.
public Func<T> CreateObject { get; set; }

Gets or sets a parameterless factory to be used on deserialization.

Serializes an instance of T using JsonSourceGenerationOptionsAttribute values specified at design time.

public Func<Type, object, T> UnionConstructor { get; set; }

public Func<T, ValueTuple<Type, object>> UnionDeconstructor { get; set; }