getParams method
Implementation
String getParams() {
if (body == null) return '';
String param = '?';
body?.forEach((key, value) {
param += '$key=${value.toString().replaceAll(' ', '%20')}';
param += '&';
});
return param.substring(0, param.length - 1);
}