decode function
Parses a simple querystring into an object
@param {String} qs @api private
Implementation
Map decode(qs) {
var qry = <dynamic, dynamic>{};
if (qs == '') {
return qry;
}
var pairs = qs.split('&');
for (var i = 0, l = pairs.length; i < l; i++) {
var pair = pairs[i].split('=');
qry[Uri.decodeComponent(pair[0])] = Uri.decodeComponent(pair[1]);
}
return qry;
}