code: function convertFields (infields) {
    const fields = {}
  
    _.each(infields, (field) => {
      field.outName = convertFieldName(field.name)
      fields[field.name] = field
    })
    return fields
  }
docs: Converts a set of fields to have names that work well in JS
  
  @params {object} inFields - the original fields object from the esri json
  @returns {object} fields - converted fields
  @private