urlEncodedForm method

MethodWithBody urlEncodedForm(
  1. Map<String, dynamic> values
)

Implementation

MethodWithBody urlEncodedForm(Map<String, dynamic> values) {
  if (_body is! Map<String, String>) {
    _body = <String, String>{};
  }
  for (String field in values.keys) {
    if (values[field] != null) {
      _body[field] = values[field]?.toString();
    }
  }
  return this;
}