json method
Implementation
MethodWithBody json(body, {bool setHeaders: true}) {
_body = codec.json.encode(body);
if (setHeaders) {
mimeType('application/json');
header('Accept', 'application/json');
}
return this;
}
MethodWithBody json(body, {bool setHeaders: true}) {
_body = codec.json.encode(body);
if (setHeaders) {
mimeType('application/json');
header('Accept', 'application/json');
}
return this;
}