FWParamModel.toJson constructor
FWParamModel.toJson(
- String schemeStr
Implementation
FWParamModel.toJson(String schemeStr) {
int schemeIdx = schemeStr.indexOf('?');
if (schemeIdx == -1) {
scheme = schemeStr;
} else {
params = {};
scheme = schemeStr.substring(0, schemeIdx);
List<String> p =
schemeStr.substring(schemeIdx + 1, schemeStr.length).split('&');
for (String j in p) {
List<String> d = j.split('=');
params?.addAll({d[0]: d[1]});
}
}
}