<reponame>AzatAI/journalim<filename>clients/javascript/src/model/IssueRead.js<gh_stars>0/*
 * JBS Backend Service
 * Journalim Protocol Compatible Backend Service
 *
 * OpenAPI spec version: 0.0.1
 * Contact: dycjh@example.com
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 *
 * Swagger Codegen version: 3.0.36
 *
 * Do not edit the class manually.
 *
 */
import {ApiClient} from '../ApiClient';

/**
 * The IssueRead model module.
 * @module model/IssueRead
 * @version 0.0.1
 */
export class IssueRead {
  /**
   * Constructs a new <code>IssueRead</code>.
   * @alias module:model/IssueRead
   * @class
   * @param title {String} 
   * @param version {String} 
   * @param id {Number} 
   */
  constructor(title, version, id) {
    this.title = title;
    this.version = version;
    this.id = id;
  }

  /**
   * Constructs a <code>IssueRead</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/IssueRead} obj Optional instance to populate.
   * @return {module:model/IssueRead} The populated <code>IssueRead</code> instance.
   */
  static constructFromObject(data, obj) {
    if (data) {
      obj = obj || new IssueRead();
      if (data.hasOwnProperty('created_at'))
        obj.createdAt = ApiClient.convertToType(data['created_at'], 'Date');
      if (data.hasOwnProperty('updated_at'))
        obj.updatedAt = ApiClient.convertToType(data['updated_at'], 'Date');
      if (data.hasOwnProperty('title'))
        obj.title = ApiClient.convertToType(data['title'], 'String');
      if (data.hasOwnProperty('version'))
        obj.version = ApiClient.convertToType(data['version'], 'String');
      if (data.hasOwnProperty('author'))
        obj.author = ApiClient.convertToType(data['author'], 'String');
      if (data.hasOwnProperty('image'))
        obj.image = ApiClient.convertToType(data['image'], 'String');
      if (data.hasOwnProperty('keywords'))
        obj.keywords = ApiClient.convertToType(data['keywords'], 'String');
      if (data.hasOwnProperty('description'))
        obj.description = ApiClient.convertToType(data['description'], 'String');
      if (data.hasOwnProperty('long_description'))
        obj.longDescription = ApiClient.convertToType(data['long_description'], 'String');
      if (data.hasOwnProperty('publication_id'))
        obj.publicationId = ApiClient.convertToType(data['publication_id'], 'Number');
      if (data.hasOwnProperty('id'))
        obj.id = ApiClient.convertToType(data['id'], 'Number');
    }
    return obj;
  }
}

/**
 * @member {Date} createdAt
 */
IssueRead.prototype.createdAt = undefined;

/**
 * @member {Date} updatedAt
 */
IssueRead.prototype.updatedAt = undefined;

/**
 * @member {String} title
 */
IssueRead.prototype.title = undefined;

/**
 * @member {String} version
 */
IssueRead.prototype.version = undefined;

/**
 * @member {String} author
 */
IssueRead.prototype.author = undefined;

/**
 * @member {String} image
 */
IssueRead.prototype.image = undefined;

/**
 * @member {String} keywords
 */
IssueRead.prototype.keywords = undefined;

/**
 * @member {String} description
 */
IssueRead.prototype.description = undefined;

/**
 * @member {String} longDescription
 */
IssueRead.prototype.longDescription = undefined;

/**
 * @member {Number} publicationId
 */
IssueRead.prototype.publicationId = undefined;

/**
 * @member {Number} id
 */
IssueRead.prototype.id = undefined;

