function parseFormData (body, indentation, bodyTrim) {
  let enabledBodyList = _.reject(body.members, 'disabled'),
    bodySnippet = '';
  if (!_.isEmpty(enabledBodyList)) {
    let bodyDataMap = _.map(enabledBodyList, (data) => {
      if (data.type === 'file') {
        return buildFormDataParamFile(data, indentation, bodyTrim);
      }
      return buildFormDataParam(data, indentation, bodyTrim);
    });
    bodySnippet += `list(\n${bodyDataMap.join(',\n')}\n)`;
  }
  return bodySnippet;
}
/**
 * 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'),
    bodySnippet = '';
  if (!_.isEmpty(enabledBodyList)) {
    let bodyDataMap = _.map(enabledBodyList, (data) => {
      if (data.type === 'file') {
        return buildFormDataParamFile(data, indentation, bodyTrim);
      }
      return buildFormDataParam(data, indentation, bodyTrim);
    });
    bodySnippet += `list(\n${bodyDataMap.join(',\n')}\n)`;
  }
  return bodySnippet;
}
function parseFormData ( body , indentation , bodyTrim ) { let enabledBodyList = _ . reject ( body . members , 'disabled' ) , bodySnippet = '' ; if ( ! _ . isEmpty ( enabledBodyList ) ) { let bodyDataMap = _ . map ( enabledBodyList , ( data ) => { if ( data . type === 'file' ) { return buildFormDataParamFile ( data , indentation , bodyTrim ) ; } return buildFormDataParam ( data , indentation , bodyTrim ) ; } ) ; bodySnippet += ` \n ${ bodyDataMap . join ( ',\n' ) } \n ` ; } return bodySnippet ; }
builds a data param
 @param {Object} body body object from request.
builds a data param @param { Object } body body object from request .