function processBodyModes (body, indentation, bodyTrim, contentType) {
  let bodySnippet = '';
  switch (body.mode) {
    case 'urlencoded': {
      bodySnippet = parseURLEncodedBody(body.urlencoded, indentation, bodyTrim);
      return bodySnippet === '' ? '' : `body = ${bodySnippet}\n\n`;
    }
    case 'raw': {
      bodySnippet = parseRawBody(body.raw, indentation, bodyTrim, contentType);
      return bodySnippet === '' ? '' : `body = ${bodySnippet}\n\n`;
    }
    case 'graphql': {
      bodySnippet = parseGraphQL(body.graphql, bodyTrim);
      return bodySnippet === '' ? '' : `body = ${bodySnippet}\n\n`;
    }
    case 'formdata': {
      bodySnippet = parseFormData(body.formdata, indentation, bodyTrim);
      return bodySnippet === '' ? '' : `body = ${bodySnippet}\n\n`;
    }
    case 'file': {
      bodySnippet = parseFromFile();
      return bodySnippet === '' ? '' : `body = upload_file(${bodySnippet})\n\n`;
    }
    default: {
      bodySnippet = parseRawBody(body.raw, indentation, bodyTrim, contentType);
      return bodySnippet === '' ? '' : `body = ${bodySnippet}\n\n`;
    }
  }
}
/**
 * Parses Body from the Request
 *
 * @param {Object} body body object from request.
 * @param {String} indentation indentation to be added to the snippet
 * @param {boolean} bodyTrim trim body option
 * @param {String} contentType Content type of the body being sent
 */
Parses Body from the Request
@param {Object} body body object from request.
@param {String} indentation indentation to be added to the snippet
@param {boolean} bodyTrim trim body option
@param {String} contentType Content type of the body being sent
Parses Body from the Request @param { Object } body body object from request . @param { String } indentation indentation to be added to the snippet @param { boolean } bodyTrim trim body option @param { String } contentType Content type of the body being sent
function processBodyModes (body, indentation, bodyTrim, contentType) {
  let bodySnippet = '';
  switch (body.mode) {
    case 'urlencoded': {
      bodySnippet = parseURLEncodedBody(body.urlencoded, indentation, bodyTrim);
      return bodySnippet === '' ? '' : `body = ${bodySnippet}\n\n`;
    }
    case 'raw': {
      bodySnippet = parseRawBody(body.raw, indentation, bodyTrim, contentType);
      return bodySnippet === '' ? '' : `body = ${bodySnippet}\n\n`;
    }
    case 'graphql': {
      bodySnippet = parseGraphQL(body.graphql, bodyTrim);
      return bodySnippet === '' ? '' : `body = ${bodySnippet}\n\n`;
    }
    case 'formdata': {
      bodySnippet = parseFormData(body.formdata, indentation, bodyTrim);
      return bodySnippet === '' ? '' : `body = ${bodySnippet}\n\n`;
    }
    case 'file': {
      bodySnippet = parseFromFile();
      return bodySnippet === '' ? '' : `body = upload_file(${bodySnippet})\n\n`;
    }
    default: {
      bodySnippet = parseRawBody(body.raw, indentation, bodyTrim, contentType);
      return bodySnippet === '' ? '' : `body = ${bodySnippet}\n\n`;
    }
  }
}
function processBodyModes ( body , indentation , bodyTrim , contentType ) { let bodySnippet = '' ; switch ( body . mode ) { case 'urlencoded' : { bodySnippet = parseURLEncodedBody ( body . urlencoded , indentation , bodyTrim ) ; return bodySnippet === '' ? '' : ` ${ bodySnippet } \n \n ` ; } case 'raw' : { bodySnippet = parseRawBody ( body . raw , indentation , bodyTrim , contentType ) ; return bodySnippet === '' ? '' : ` ${ bodySnippet } \n \n ` ; } case 'graphql' : { bodySnippet = parseGraphQL ( body . graphql , bodyTrim ) ; return bodySnippet === '' ? '' : ` ${ bodySnippet } \n \n ` ; } case 'formdata' : { bodySnippet = parseFormData ( body . formdata , indentation , bodyTrim ) ; return bodySnippet === '' ? '' : ` ${ bodySnippet } \n \n ` ; } case 'file' : { bodySnippet = parseFromFile ( ) ; return bodySnippet === '' ? '' : ` ${ bodySnippet } \n \n ` ; } default : { bodySnippet = parseRawBody ( body . raw , indentation , bodyTrim , contentType ) ; return bodySnippet === '' ? '' : ` ${ bodySnippet } \n \n ` ; } } }
Parses Body from the Request
 @param {Object} body body object from request.
Parses Body from the Request @param { Object } body body object from request .