function parseBody (body, indent, trim, contentType) {
  if (!_.isEmpty(body)) {
    switch (body.mode) {
      case 'urlencoded':
        return parseUrlEncoded(body.urlencoded, indent, trim);
      case 'raw':
        return parseRawBody(body.raw, trim, contentType, indent.length);
      case 'formdata':
        return parseFormData(body.formdata, indent, trim);
      case 'graphql':
        return parseGraphQLBody(body.graphql, trim);
      case 'file':
        return 'request.body = r\'<file contents here>\';\n';
      default:
        return '';
    }
  }
  return '';
}
/**
 * Parses Body from the Request
 *
 * @param {Object} body body object from request.
 * @param {String} indent indentation required for code snippet
 * @param {Boolean} trim indicates whether to trim string or not
 * @param {String} contentType the content-type of the request body
 */
Parses Body from the Request
@param {Object} body body object from request.
@param {String} indent indentation required for code snippet
@param {Boolean} trim indicates whether to trim string or not
@param {String} contentType the content-type of the request body
Parses Body from the Request @param { Object } body body object from request . @param { String } indent indentation required for code snippet @param { Boolean } trim indicates whether to trim string or not @param { String } contentType the content - type of the request body
function parseBody (body, indent, trim, contentType) {
  if (!_.isEmpty(body)) {
    switch (body.mode) {
      case 'urlencoded':
        return parseUrlEncoded(body.urlencoded, indent, trim);
      case 'raw':
        return parseRawBody(body.raw, trim, contentType, indent.length);
      case 'formdata':
        return parseFormData(body.formdata, indent, trim);
      case 'graphql':
        return parseGraphQLBody(body.graphql, trim);
      case 'file':
        return 'request.body = r\'<file contents here>\';\n';
      default:
        return '';
    }
  }
  return '';
}
function parseBody ( body , indent , trim , contentType ) { if ( ! _ . isEmpty ( body ) ) { switch ( body . mode ) { case 'urlencoded' : return parseUrlEncoded ( body . urlencoded , indent , trim ) ; case 'raw' : return parseRawBody ( body . raw , trim , contentType , indent . length ) ; case 'formdata' : return parseFormData ( body . formdata , indent , trim ) ; case 'graphql' : return parseGraphQLBody ( body . graphql , trim ) ; case 'file' : return 'request.body = r\'<file contents here>\';\n' ; default : return '' ; } } return '' ; }
Parses Body from the Request
 @param {Object} body body object from request.
Parses Body from the Request @param { Object } body body object from request .