encode function
parseqs.dart
Purpose:
Description:
History: 26/04/2017, Created by jumperchen
Copyright (C) 2017 Potix Corporation. All Rights Reserved.
Implementation
String encode(Map obj) {
var str = '';
for (var i in obj.keys) {
if (str.isNotEmpty) str += '&';
str += Uri.encodeComponent('$i') + '=' + Uri.encodeComponent('${obj[i]}');
}
return str;
}