text: /**
   * SPAR Engine API
   * Allow clients to fetch SPAR Engine Analytics through APIs.
   *
   * The version of the OpenAPI document: 2
   * Contact: analytics.api.support@factset.com
   *
   * 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';
  
  /**
   * The CalculationUnitStatus model module.
   * @module model/CalculationUnitStatus
   * @version 0.8.2
   */
  class CalculationUnitStatus {
      /**
       * Constructs a new <code>CalculationUnitStatus</code>.
       * @alias module:model/CalculationUnitStatus
       */
      constructor() { 
          
          CalculationUnitStatus.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>CalculationUnitStatus</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/CalculationUnitStatus} obj Optional instance to populate.
       * @return {module:model/CalculationUnitStatus} The populated <code>CalculationUnitStatus</code> instance.
       */
      static constructFromObject(data, obj) {
          if (data) {
              obj = obj || new CalculationUnitStatus();
  
              if (data.hasOwnProperty('status')) {
                  obj['status'] = ApiClient.convertToType(data['status'], 'String');
              }
              if (data.hasOwnProperty('error')) {
                  obj['error'] = ApiClient.convertToType(data['error'], 'String');
              }
              if (data.hasOwnProperty('result')) {
                  obj['result'] = ApiClient.convertToType(data['result'], 'String');
              }
          }
          return obj;
      }
  
  
  }
  
  /**
   * The status of calculation unit.
   * @member {module:model/CalculationUnitStatus.StatusEnum} status
   */
  CalculationUnitStatus.prototype['status'] = undefined;
  
  /**
   * The error in a calculation unit.
   * @member {String} error
   */
  CalculationUnitStatus.prototype['error'] = undefined;
  
  /**
   * The result URL of the calculation.
   * @member {String} result
   */
  CalculationUnitStatus.prototype['result'] = undefined;
  
  
  
  
  
  /**
   * Allowed values for the <code>status</code> property.
   * @enum {String}
   * @readonly
   */
  CalculationUnitStatus['StatusEnum'] = {
  
      /**
       * value: "Queued"
       * @const
       */
      "Queued": "Queued",
  
      /**
       * value: "Executing"
       * @const
       */
      "Executing": "Executing",
  
      /**
       * value: "Success"
       * @const
       */
      "Success": "Success",
  
      /**
       * value: "Failed"
       * @const
       */
      "Failed": "Failed",
  
      /**
       * value: "Cancelled"
       * @const
       */
      "Cancelled": "Cancelled"
  };
  
  
  
  export default CalculationUnitStatus;
  
  