Converts to a map of query parameters
@override Map<String, List<String>> toQuery() => { if (isNotEmpty) 'sort': [join(',')] };