convertRequest method
Converts the received Request
to a Request
which has a body with the
HTTP representation of the original body.
Implementation
@override
Request convertRequest(Request request) {
final req = applyHeader(
request,
contentTypeKey,
jsonHeaders,
override: false,
);
return encodeJson(req);
}