<PackageReference Include="System.Text.Json" Version="7.0.0-preview.7.22375.6" />

JsonTypeInfo

public abstract class JsonTypeInfo
Provides JSON serialization-related metadata about a type.
public JsonConverter Converter { get; }

public Func<object> CreateObject { get; set; }

public JsonTypeInfoKind Kind { get; }

public JsonNumberHandling? NumberHandling { get; set; }

public Action<object> OnDeserialized { get; set; }

public Action<object> OnDeserializing { get; set; }

public Action<object> OnSerialized { get; set; }

public Action<object> OnSerializing { get; set; }

public Type Type { get; }

public JsonPropertyInfo CreateJsonPropertyInfo(Type propertyType, string name)