<reponame>AzatAI/journalim<filename>clients/javascript/src/model/PublicationCreate.js<gh_stars>0/*
 * JBS Backend Service
 * Journalim Protocol Compatible Backend Service
 *
 * OpenAPI spec version: 0.0.1
 * Contact: upchh@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 PublicationCreate model module.
 * @module model/PublicationCreate
 * @version 0.0.1
 */
export class PublicationCreate {
  /**
   * Constructs a new <code>PublicationCreate</code>.
   * @alias module:model/PublicationCreate
   * @class
   * @param title {String} 
   */
  constructor(title) {
    this.title = title;
  }

  /**
   * Constructs a <code>PublicationCreate</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/PublicationCreate} obj Optional instance to populate.
   * @return {module:model/PublicationCreate} The populated <code>PublicationCreate</code> instance.
   */
  static constructFromObject(data, obj) {
    if (data) {
      obj = obj || new PublicationCreate();
      if (data.hasOwnProperty('title'))
        obj.title = ApiClient.convertToType(data['title'], 'String');
      if (data.hasOwnProperty('description'))
        obj.description = ApiClient.convertToType(data['description'], 'String');
      if (data.hasOwnProperty('publisher'))
        obj.publisher = ApiClient.convertToType(data['publisher'], 'String');
      if (data.hasOwnProperty('issn'))
        obj.issn = ApiClient.convertToType(data['issn'], 'String');
      if (data.hasOwnProperty('isbn'))
        obj.isbn = ApiClient.convertToType(data['isbn'], 'String');
      if (data.hasOwnProperty('editor_in_chief'))
        obj.editorInChief = ApiClient.convertToType(data['editor_in_chief'], 'String');
      if (data.hasOwnProperty('editor_others'))
        obj.editorOthers = ApiClient.convertToType(data['editor_others'], 'String');
      if (data.hasOwnProperty('contact_person'))
        obj.contactPerson = ApiClient.convertToType(data['contact_person'], 'String');
      if (data.hasOwnProperty('contact_email'))
        obj.contactEmail = ApiClient.convertToType(data['contact_email'], 'String');
      if (data.hasOwnProperty('contact_number'))
        obj.contactNumber = ApiClient.convertToType(data['contact_number'], 'String');
      if (data.hasOwnProperty('contact_address'))
        obj.contactAddress = ApiClient.convertToType(data['contact_address'], 'String');
      if (data.hasOwnProperty('subscription_fee'))
        obj.subscriptionFee = ApiClient.convertToType(data['subscription_fee'], '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('long_description'))
        obj.longDescription = ApiClient.convertToType(data['long_description'], 'String');
    }
    return obj;
  }
}

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

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

/**
 * @member {String} publisher
 */
PublicationCreate.prototype.publisher = undefined;

/**
 * @member {String} issn
 */
PublicationCreate.prototype.issn = undefined;

/**
 * @member {String} isbn
 */
PublicationCreate.prototype.isbn = undefined;

/**
 * @member {String} editorInChief
 */
PublicationCreate.prototype.editorInChief = undefined;

/**
 * @member {String} editorOthers
 */
PublicationCreate.prototype.editorOthers = undefined;

/**
 * @member {String} contactPerson
 */
PublicationCreate.prototype.contactPerson = undefined;

/**
 * @member {String} contactEmail
 */
PublicationCreate.prototype.contactEmail = undefined;

/**
 * @member {String} contactNumber
 */
PublicationCreate.prototype.contactNumber = undefined;

/**
 * @member {String} contactAddress
 */
PublicationCreate.prototype.contactAddress = undefined;

/**
 * @member {String} subscriptionFee
 */
PublicationCreate.prototype.subscriptionFee = undefined;

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

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

/**
 * This can be a very long html or markdown content
 * @member {String} longDescription
 */
PublicationCreate.prototype.longDescription = undefined;

