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

Refit.SystemTextJsonQueryConverter<T>

public sealed class SystemTextJsonQueryConverter<T> : IQueryConverter<T>
An IQueryConverter<T> that flattens a query parameter by walking the JsonTypeInfo of the configured SystemTextJsonContentSerializer, reusing a registered JsonSerializerContext so arbitrary (including polymorphic) types flatten without hand-written code. Attach it with [QueryConverter(typeof(SystemTextJsonQueryConverter<MyType>))].
namespace Refit { public sealed class SystemTextJsonQueryConverter<[System.Runtime.CompilerServices.Nullable(2)] T> : IQueryConverter<T> { public void Flatten(T value, string keyPrefix, ref GeneratedQueryStringBuilder builder, RefitSettings settings); public SystemTextJsonQueryConverter(); } }