在这种情况下,我需要将Map
转换为查询字符串(在第一个?
之后).例如,如果我有以下 map :
Map json = {
"email": eml,
"password": passwd
};
和基本URL:
String baseURL = "http://localhost:8080/myapp";
然后,我需要一些东西将jSON Map
转换为基本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);
我在Git上找到了this query String-to-map library个,但我需要这个的inverse个!如果能把URL编码也放进go 就太好了.
I'm happy to make something homegrown but being so new to Dart I was wondering if there's anything on 100/Github/the etherspehere that does this already.