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 BaseComment from './BaseComment';
  
  /**
   * The PostComment model module.
   * @module model/PostComment
   * @version 1.0.0
   */
  class PostComment {
      /**
       * Constructs a new <code>PostComment</code>.
       * @alias module:model/PostComment
       */
      constructor() { 
          
          PostComment.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>PostComment</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/PostComment} obj Optional instance to populate.
       * @return {module:model/PostComment} The populated <code>PostComment</code> instance.
       */
      static constructFromObject(data, obj) {
          if (data) {
              obj = obj || new PostComment();
  
              if (data.hasOwnProperty('success')) {
                  obj['success'] = ApiClient.convertToType(data['success'], 'Boolean');
  
                  delete data['success'];
              }
              if (data.hasOwnProperty('data')) {
                  obj['data'] = BaseComment.constructFromObject(data['data']);
  
                  delete data['data'];
              }
  
              if (Object.keys(data).length > 0) {
                  Object.assign(obj, data);
              }
  
          }
          return obj;
      }
  
  
  }
  
  /**
   * If the request was successful or not
   * @member {Boolean} success
   */
  PostComment.prototype['success'] = undefined;
  
  /**
   * @member {module:model/BaseComment} data
   */
  PostComment.prototype['data'] = undefined;
  
  
  
  
  
  
  export default PostComment;
  
  