I have a situation where I need to turn a Map into a query String (after the first ?). For instance if I have the following map:
Map json = {
"email": eml,
"password": passwd
};
And a base URL:
String baseURL = "http://localhost:8080/myapp";
Then I need something that converts the json Map into the query string of the base URL:
String fullURL = parameterizeURL(baseURL, json);
// Prints: http://localhost:8080/myapp?email=blah&password=meh
// (if "blah" was entered as the email, and "meh" was entered as the password)
print(fullURL);
I found this query String-to-map library on Git, but I need the inverse of this! It would be great to get URL encoding in there as well.
I'm happy to make something homegrown but being so new to Dart I was wondering if there's anything on pub/Github/the etherspehere that does this already.