function parseFormData (requestbody, indentString, trimField) {
  return _.reduce(requestbody[requestbody.mode], function (body, data) {
    if (data.disabled) {
      return body;
    }
    if (data.type === 'file') {
      body += indentString + `.field("file", new File("${sanitize(data.src, trimField)}"))\n`;
    }
    else {
      (!data.value) && (data.value = '');
      body += indentString + `.field("${sanitize(data.key, trimField)}", ` +
                                    `"${sanitize(data.value, trimField)}"`;
      if (data.contentType) {
        body += `, "${sanitize(data.contentType, trimField)}"`;
      }
      body += ')\n';
    }
    return body;
  }, '');
}
/**
 * parses form data from request body and returns codesnippet in java unirest
 *
 * @param {Object} requestbody - JSON object acquired by request.body.JSON()
 * @param {String} indentString - value for indentation
 * @param {Boolean} trimField - whether to trim fields of the request body
 * @returns {String} - body string parsed from JSON object
 */
parses form data from request body and returns codesnippet in java unirest
@param {Object} requestbody - JSON object acquired by request.body.JSON()
@param {String} indentString - value for indentation
@param {Boolean} trimField - whether to trim fields of the request body
@returns {String} - body string parsed from JSON object
parses form data from request body and returns codesnippet in java unirest @param { Object } requestbody - JSON object acquired by request . body . JSON () @param { String } indentString - value for indentation @param { Boolean } trimField - whether to trim fields of the request body @returns { String } - body string parsed from JSON object
function parseFormData (requestbody, indentString, trimField) {
  return _.reduce(requestbody[requestbody.mode], function (body, data) {
    if (data.disabled) {
      return body;
    }
    if (data.type === 'file') {
      body += indentString + `.field("file", new File("${sanitize(data.src, trimField)}"))\n`;
    }
    else {
      (!data.value) && (data.value = '');
      body += indentString + `.field("${sanitize(data.key, trimField)}", ` +
                                    `"${sanitize(data.value, trimField)}"`;
      if (data.contentType) {
        body += `, "${sanitize(data.contentType, trimField)}"`;
      }
      body += ')\n';
    }
    return body;
  }, '');
}
function parseFormData ( requestbody , indentString , trimField ) { return _ . reduce ( requestbody [ requestbody . mode ] , function ( body , data ) { if ( data . disabled ) { return body ; } if ( data . type === 'file' ) { body += indentString + ` ${ sanitize ( data . src , trimField ) } \n ` ; } else { ( ! data . value ) && ( data . value = '' ) ; body += indentString + ` ${ sanitize ( data . key , trimField ) } ` + ` ${ sanitize ( data . value , trimField ) } ` ; if ( data . contentType ) { body += ` ${ sanitize ( data . contentType , trimField ) } ` ; } body += ')\n' ; } return body ; } , '' ) ; }
parses form data from request body and returns codesnippet in java unirest
 @param {Object} requestbody - JSON object acquired by request.body.JSON()
 @param {String} indentString - value for indentation
 @param {Boolean} trimField - whether to trim fields of the request body
 @returns {String} - body string parsed from JSON object
parses form data from request body and returns codesnippet in java unirest @param { Object } requestbody - JSON object acquired by request . body . JSON () @param { String } indentString - value for indentation @param { Boolean } trimField - whether to trim fields of the request body @returns { String } - body string parsed from JSON object