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

IPersistableModel<T>

public interface IPersistableModel<T>
Allows an object to control its own writing and reading. The format is determined by the implementer.

Converts the provided BinaryData into a model.

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

Writes the model into a BinaryData.