code: function (entityV1, options) {
          if (!entityV1) { return; }
          if ((util.notLegacy(entityV1, 'auth') || this.options.prioritizeV2) && entityV1.auth) {
              return util.authArrayToMap(entityV1, options);
          }
          if (!entityV1.currentHelper || (entityV1.currentHelper === null) || (entityV1.currentHelper === 'normal')) {
              return;
          }
  
          var params,
              type = v1Common.authMap[entityV1.currentHelper] || entityV1.currentHelper,
              auth = {
                  type: type
              };
  
          // Some legacy versions of the App export Helper Attributes as a string.
          if (_.isString(entityV1.helperAttributes)) {
              try {
                  entityV1.helperAttributes = JSON.parse(entityV1.helperAttributes);
              }
              catch (e) {
                  return;
              }
          }
  
          if (entityV1.helperAttributes && util.authMappersFromLegacy[entityV1.currentHelper]) {
              params = util.authMappersFromLegacy[entityV1.currentHelper](entityV1.helperAttributes);
          }
  
          params && (auth[type] = params);
  
          return auth;
      }
docs: A number of auth parameter names have changed from V1 to V2. This function calls the appropriate
  mapper function, and creates the V2 auth parameter object.
  
  @param {Object} entityV1 - The v1 entity to derive auth information from.
  @param {?Object} options - The set of options for the current auth cleansing operation.
  @param {?Boolean} [options.includeNoauth=false] - When set to true, noauth is set to null.
  @returns {{type: *}}