String toQueryParams(Map params) { return params.entries.map((entry) => "${entry.key}=${entry.value}").join("&"); }