<PackageReference Include="System.ClientModel" Version="1.8.1" />

System.ClientModel.Primitives.IPersistableModel<T>

public interface IPersistableModel<T>
Allows an object to control its own writing and reading. The format is determined by the implementer.
namespace System.ClientModel.Primitives { public interface IPersistableModel<[System.Runtime.CompilerServices.Nullable(2)] out T> { BinaryData Write(ModelReaderWriterOptions options); T Create(BinaryData data, ModelReaderWriterOptions options); string GetFormatFromOptions(ModelReaderWriterOptions options); } }