<PackageReference Include="Refit" Version="16.2.0" />

Refit.IHttpContentSerializer

public interface IHttpContentSerializer
Provides content serialization to HttpContent.
Task<T> FromHttpContentAsync<T>(HttpContent content, CancellationToken cancellationToken = default)

Deserializes an object of type T from an HttpContent object.

Calculates what the field name should be for the given property. This may be affected by custom attributes the serializer understands.

Serializes an object of type T to HttpContent.