System.ClientModel.Primitives.IJsonModel<T>
Allows an object to control its own JSON writing and reading.
namespace System.ClientModel.Primitives
{
public interface IJsonModel<[System.Runtime.CompilerServices.Nullable(2)] out T> : IPersistableModel<T>
{
void Write(Utf8JsonWriter writer, ModelReaderWriterOptions options);
T Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options);
}
}