text: /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
  /* Copyright (c) 2017 Mobify Research & Development Inc. All rights reserved. */
  /* * *  *  * *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  *  * */
  
  /**
   * OCC No description provided (generated by Swagger Codegen
   * https://github.com/swagger-api/swagger-codegen)
   *
   * OpenAPI spec version: v2
   *
   *
   * 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'
  
  /**
  * The ProductReferenceOCC model module.
  * @module models/ProductReferenceOCC
  * @version v2
  */
  export default class ProductReferenceOCC {
      /**
      * Constructs a new <code>ProductReferenceOCC</code>.
      * @alias module:models/ProductReferenceOCC
      * @class
      */
  
      constructor() {
          /**
      *
      * @member {Boolean} preselected
      */
          this.preselected = undefined
          /**
      *
      * @member {String} referenceType
      */
          this.referenceType = undefined
          /**
      *
      * @member {String} description
      */
          this.description = undefined
          /**
      *
      * @member {Number} quantity
      */
          this.quantity = undefined
      }
  
      /**
      * Constructs a <code>ProductReferenceOCC</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/ProductReferenceOCC} obj Optional instance to
      * populate.
      * @return {module:models/ProductReferenceOCC} The populated
      * <code>ProductReferenceOCC</code> instance.
      */
      static constructFromObject(data, obj) {
          if (data) {
              obj = obj || new ProductReferenceOCC()
  
              if (data.hasOwnProperty('preselected')) {
                  obj.preselected = ApiClient.convertToType(data.preselected, 'Boolean')
              }
              if (data.hasOwnProperty('referenceType')) {
                  obj.referenceType = ApiClient.convertToType(data.referenceType, 'String')
              }
              if (data.hasOwnProperty('description')) {
                  obj.description = ApiClient.convertToType(data.description, 'String')
              }
              if (data.hasOwnProperty('quantity')) {
                  obj.quantity = ApiClient.convertToType(data.quantity, 'Number')
              }
          }
          return obj
      }
  
  }
  