text: /**
   * Pipedrive API v1
   * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
   *
   * The version of the OpenAPI document: 1.0.0
   * 
   *
   * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
   * https://openapi-generator.tech
   * Do not edit the class manually.
   *
   */
  
  import ApiClient from '../ApiClient';
  import NumberBoolean from './NumberBoolean';
  
  /**
   * The Pipeline model module.
   * @module model/Pipeline
   * @version 1.0.0
   */
  class Pipeline {
      /**
       * Constructs a new <code>Pipeline</code>.
       * @alias module:model/Pipeline
       */
      constructor() { 
          
          Pipeline.initialize(this);
      }
  
      /**
       * Initializes the fields of this object.
       * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
       * Only for internal use.
       */
      static initialize(obj) { 
      }
  
      /**
       * Constructs a <code>Pipeline</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:model/Pipeline} obj Optional instance to populate.
       * @return {module:model/Pipeline} The populated <code>Pipeline</code> instance.
       */
      static constructFromObject(data, obj) {
          if (data) {
              obj = obj || new Pipeline();
  
              if (data.hasOwnProperty('name')) {
                  obj['name'] = ApiClient.convertToType(data['name'], 'String');
  
                  delete data['name'];
              }
              if (data.hasOwnProperty('deal_probability')) {
                  obj['deal_probability'] = ApiClient.convertToType(data['deal_probability'], NumberBoolean);
  
                  delete data['deal_probability'];
              }
              if (data.hasOwnProperty('order_nr')) {
                  obj['order_nr'] = ApiClient.convertToType(data['order_nr'], 'Number');
  
                  delete data['order_nr'];
              }
              if (data.hasOwnProperty('active')) {
                  obj['active'] = ApiClient.convertToType(data['active'], NumberBoolean);
  
                  delete data['active'];
              }
  
              if (Object.keys(data).length > 0) {
                  Object.assign(obj, data);
              }
  
          }
          return obj;
      }
  
  
  }
  
  /**
   * The name of the Pipeline
   * @member {String} name
   */
  Pipeline.prototype['name'] = undefined;
  
  /**
   * Whether Deal probability is disabled or enabled for this Pipeline
   * @member {module:model/NumberBoolean} deal_probability
   */
  Pipeline.prototype['deal_probability'] = undefined;
  
  /**
   * Defines the order of Pipelines. First order (`order_nr=0`) is the default Pipeline.
   * @member {Number} order_nr
   */
  Pipeline.prototype['order_nr'] = undefined;
  
  /**
   * Whether this Pipeline will be made inactive (hidden) or active
   * @member {module:model/NumberBoolean} active
   */
  Pipeline.prototype['active'] = undefined;
  
  
  
  
  
  
  export default Pipeline;
  
  