function parseFormData (body, indentation, bodyTrim) {
  let enabledBodyList = _.reject(body.members, 'disabled'),
    numberOfFiles = 0,
    bodySnippet = '',
    fileSnippet = '';
  if (!_.isEmpty(enabledBodyList)) {
    let formDataFile, formData, bodyDataMap;
    formDataFile = enabledBodyList.filter((param) => {
      return param.type === 'file';
    });
    formData = enabledBodyList.filter((param) => {
      return param.type !== 'file';
    });
    bodyDataMap = _.map(formData, (data) => {
      return buildFormDataParam(data, indentation, bodyTrim);
    });
    numberOfFiles = formDataFile.length;
    _.forEach(formDataFile, (data, index) => {
      fileSnippet += buildFormDataParamFile(data, indentation, bodyTrim, index);
    });
    if (bodyDataMap.length > 0) {
      bodySnippet += `c(\n${bodyDataMap.join(',\n')}\n)`;
    }
  }
  return {bodySnippet, fileSnippet, numberOfFiles};
}
/**
 * builds a data param
 *
 * @param {Object} body body object from request.
 * @param {String} indentation indentation to be added to the snippet
 * @param {boolean} bodyTrim trim body option
 * @returns {String} snippet of the body generation
 */
builds a data param
@param {Object} body body object from request.
@param {String} indentation indentation to be added to the snippet
@param {boolean} bodyTrim trim body option
@returns {String} snippet of the body generation
builds a data param @param { Object } body body object from request . @param { String } indentation indentation to be added to the snippet @param { boolean } bodyTrim trim body option @returns { String } snippet of the body generation
function parseFormData (body, indentation, bodyTrim) {
  let enabledBodyList = _.reject(body.members, 'disabled'),
    numberOfFiles = 0,
    bodySnippet = '',
    fileSnippet = '';
  if (!_.isEmpty(enabledBodyList)) {
    let formDataFile, formData, bodyDataMap;
    formDataFile = enabledBodyList.filter((param) => {
      return param.type === 'file';
    });
    formData = enabledBodyList.filter((param) => {
      return param.type !== 'file';
    });
    bodyDataMap = _.map(formData, (data) => {
      return buildFormDataParam(data, indentation, bodyTrim);
    });
    numberOfFiles = formDataFile.length;
    _.forEach(formDataFile, (data, index) => {
      fileSnippet += buildFormDataParamFile(data, indentation, bodyTrim, index);
    });
    if (bodyDataMap.length > 0) {
      bodySnippet += `c(\n${bodyDataMap.join(',\n')}\n)`;
    }
  }
  return {bodySnippet, fileSnippet, numberOfFiles};
}
function parseFormData ( body , indentation , bodyTrim ) { let enabledBodyList = _ . reject ( body . members , 'disabled' ) , numberOfFiles = 0 , bodySnippet = '' , fileSnippet = '' ; if ( ! _ . isEmpty ( enabledBodyList ) ) { let formDataFile , formData , bodyDataMap ; formDataFile = enabledBodyList . filter ( ( param ) => { return param . type === 'file' ; } ) ; formData = enabledBodyList . filter ( ( param ) => { return param . type !== 'file' ; } ) ; bodyDataMap = _ . map ( formData , ( data ) => { return buildFormDataParam ( data , indentation , bodyTrim ) ; } ) ; numberOfFiles = formDataFile . length ; _ . forEach ( formDataFile , ( data , index ) => { fileSnippet += buildFormDataParamFile ( data , indentation , bodyTrim , index ) ; } ) ; if ( bodyDataMap . length > 0 ) { bodySnippet += ` \n ${ bodyDataMap . join ( ',\n' ) } \n ` ; } } return { bodySnippet , fileSnippet , numberOfFiles } ; }
builds a data param
 @param {Object} body body object from request.
builds a data param @param { Object } body body object from request .