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

  /**
   * Constructs a <code>PageLanguageUpdate</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/PageLanguageUpdate} obj Optional instance to populate.
   * @return {module:model/PageLanguageUpdate} The populated <code>PageLanguageUpdate</code> instance.
   */
  static constructFromObject(data, obj) {
    if (data) {
      obj = obj || new PageLanguageUpdate();
      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('keywords'))
        obj.keywords = ApiClient.convertToType(data['keywords'], 'String');
      if (data.hasOwnProperty('content'))
        obj.content = ApiClient.convertToType(data['content'], 'String');
    }
    return obj;
  }
}

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

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

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

/**
 * @member {String} content
 */
PageLanguageUpdate.prototype.content = undefined;

