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

Refit.JsonContentSerializer

An obsolete JSON content serializer that has been replaced by serializers in dedicated packages.

public Task<T> FromHttpContentAsync<T>(HttpContent content, CancellationToken cancellationToken = default)

Deserializes an object of type T from an HttpContent object.

public string GetFieldNameForProperty(PropertyInfo propertyInfo)

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

public HttpContent ToHttpContent<T>(T item)

Converts to httpcontent.