text: /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
  /* Copyright (c) 2020 Mobify Research & Development Inc. All rights reserved. */
  /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
  
  /**
   * Shop API
   * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
   *
   * OpenAPI spec version: 20.4
   *
   *
   * NOTE: This class is auto generated by the swagger code generator program.
   * https://github.com/swagger-api/swagger-codegen.git
   * Do not edit the class manually.
   *
   */
  
  
  import ApiClient from '../ApiClient'
  import ContentSearchRefinementValue from './ContentSearchRefinementValue'
  
  
  
  
  
  /**
  * The ContentSearchRefinement model module.
  * @module models/ContentSearchRefinement
  * @version 20.4
  */
  export default class ContentSearchRefinement {
      /**
      * Constructs a new <code>ContentSearchRefinement</code>.
      * Document representing a search refinement attribute.
      * @alias module:models/ContentSearchRefinement
      * @class
      * @param attributeId {String} The id of the search refinement attribute. In the case of an attribute refinement, this is the  attribute id. Custom attributes are marked by the prefix \"c_\".
      */
  
      constructor(attributeId) {
  
  
  
  
  
          this.attribute_id = attributeId
  
  
      }
  
      /**
      * Constructs a <code>ContentSearchRefinement</code> from a plain JavaScript object, optionally creating a new instance.
      * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
      * @param {Object} data The plain JavaScript object bearing properties of interest.
      * @param {module:models/ContentSearchRefinement} obj Optional instance to populate.
      * @return {module:models/ContentSearchRefinement} The populated <code>ContentSearchRefinement</code> instance.
      */
      static constructFromObject(data, obj) {
          if (data) {
              obj = obj || new ContentSearchRefinement()
  
  
  
  
  
              if (data.hasOwnProperty('attribute_id')) {
                  obj.attribute_id = ApiClient.convertToType(data.attribute_id, 'String')
              }
              if (data.hasOwnProperty('label')) {
                  obj.label = ApiClient.convertToType(data.label, 'String')
              }
              if (data.hasOwnProperty('values')) {
                  obj.values = ApiClient.convertToType(data.values, [ContentSearchRefinementValue])
              }
          }
          return obj
      }
  
      /**
      * The id of the search refinement attribute. In the case of an attribute refinement, this is the  attribute id. Custom attributes are marked by the prefix \"c_\".
      * @member {String} attribute_id
      */
      attribute_id = undefined;
      /**
      * The localized label of the refinement.
      * @member {String} label
      */
      label = undefined;
      /**
      * The sorted array of refinement values. The array can be empty.
      * @member {Array.<module:models/ContentSearchRefinementValue>} values
      */
      values = undefined;
  
  
  
  
  
  
  
  
  }
  
  
  