buildBody method

  1. @override
HttpRequestBody buildBody(
  1. HttpRequestBody body
)
override

Builds the HttpRequest body with the Credential.

Implementation

@override
HttpRequestBody buildBody(HttpRequestBody body) {
  if (body.isNull) {
    return buildJSONAuthorizationBody(null);
  } else if (body.isJSONType) {
    return buildJSONAuthorizationBody(body);
  } else {
    return body;
  }
}