queryParamsToWire<T> function
Serialize a QueryParams to a wire map.
Hand-written for the same reason as queryParamsFromWire: the generated
toWire stores the ZorphyFilter<T> as an object, but a wire map must
carry its JSON form (FilterConverter.toJson).
Implementation
Map<String, dynamic> queryParamsToWire<T>(QueryParams<T> params) => {
'params': params.params,
if (params.filter != null) 'filter': FilterConverter.toJson(params.filter!),
};