Filter constructor

Filter([
  1. Map<String, String> parameters = const {}
])

Example:

Filter({'post': '1,2', 'author': '12'}).addTo(url);

encodes into

?filter[post]=1,2&filter[author]=12

Implementation

Filter([Map<String, String> parameters = const {}]) {
  addAll(parameters);
}