<PackageReference Include="Refit" Version="15.0.0-beta.1" />

Refit.IQueryConverter<T>

public interface IQueryConverter<T>
Flattens a query parameter value into query-string pairs by hand, for shapes the source generator cannot flatten from the declared type (an Object value, a polymorphic base type, a Dictionary<string, object>, and similar). Attach an implementation to a parameter with QueryConverterAttribute.
void Flatten(T value, string keyPrefix, ref GeneratedQueryStringBuilder builder, RefitSettings settings)

Writes the query pairs for value into builder.