model/DocumentHtmlDisplaySettings.js

/**
 * Docusign eSignature REST API
 * The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.
 *
 * OpenAPI spec version: v2.1
 * Contact: devcenter@docusign.com
 *
 * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead.
 *
 */

(function(root, factory) {
  if (typeof define === 'function' && define.amd) {
    // AMD. Register as an anonymous module.
    define(['ApiClient', 'model/DocumentHtmlCollapsibleDisplaySettings'], factory);
  } else if (typeof module === 'object' && module.exports) {
    // CommonJS-like environments that support module.exports, like Node.
    module.exports = factory(require('../ApiClient'), require('./DocumentHtmlCollapsibleDisplaySettings'));
  } else {
    // Browser globals (root is window)
    if (!root.Docusign) {
      root.Docusign = {};
    }
    root.Docusign.DocumentHtmlDisplaySettings = factory(root.Docusign.ApiClient, root.Docusign.DocumentHtmlCollapsibleDisplaySettings);
  }
}(this, function(ApiClient, DocumentHtmlCollapsibleDisplaySettings) {
  'use strict';


  /**
   * The DocumentHtmlDisplaySettings model module.
   * @module model/DocumentHtmlDisplaySettings
   */

  /**
   * Constructs a new <code>DocumentHtmlDisplaySettings</code>.
   * @alias module:model/DocumentHtmlDisplaySettings
   * @class
   */
  var exports = function() {
    var _this = this;


  };

  /**
   * Constructs a <code>DocumentHtmlDisplaySettings</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/DocumentHtmlDisplaySettings} obj Optional instance to populate.
   * @return {module:model/DocumentHtmlDisplaySettings} The populated <code>DocumentHtmlDisplaySettings</code> instance.
   */
  exports.constructFromObject = function(data, obj) {
    if (data) {
      obj = obj || new exports();

      if (data.hasOwnProperty('cellStyle')) {
        obj['cellStyle'] = ApiClient.convertToType(data['cellStyle'], 'String');
      }
      if (data.hasOwnProperty('collapsibleSettings')) {
        obj['collapsibleSettings'] = DocumentHtmlCollapsibleDisplaySettings.constructFromObject(data['collapsibleSettings']);
      }
      if (data.hasOwnProperty('display')) {
        obj['display'] = ApiClient.convertToType(data['display'], 'String');
      }
      if (data.hasOwnProperty('displayLabel')) {
        obj['displayLabel'] = ApiClient.convertToType(data['displayLabel'], 'String');
      }
      if (data.hasOwnProperty('displayOrder')) {
        obj['displayOrder'] = ApiClient.convertToType(data['displayOrder'], 'Number');
      }
      if (data.hasOwnProperty('displayPageNumber')) {
        obj['displayPageNumber'] = ApiClient.convertToType(data['displayPageNumber'], 'Number');
      }
      if (data.hasOwnProperty('hideLabelWhenOpened')) {
        obj['hideLabelWhenOpened'] = ApiClient.convertToType(data['hideLabelWhenOpened'], 'Boolean');
      }
      if (data.hasOwnProperty('inlineOuterStyle')) {
        obj['inlineOuterStyle'] = ApiClient.convertToType(data['inlineOuterStyle'], 'String');
      }
      if (data.hasOwnProperty('labelWhenOpened')) {
        obj['labelWhenOpened'] = ApiClient.convertToType(data['labelWhenOpened'], 'String');
      }
      if (data.hasOwnProperty('preLabel')) {
        obj['preLabel'] = ApiClient.convertToType(data['preLabel'], 'String');
      }
      if (data.hasOwnProperty('scrollToTopWhenOpened')) {
        obj['scrollToTopWhenOpened'] = ApiClient.convertToType(data['scrollToTopWhenOpened'], 'Boolean');
      }
      if (data.hasOwnProperty('tableStyle')) {
        obj['tableStyle'] = ApiClient.convertToType(data['tableStyle'], 'String');
      }
    }
    return obj;
  }

  /**
   * 
   * @member {String} cellStyle
   */
  exports.prototype['cellStyle'] = undefined;
  /**
   * This object defines the appearance and function of a collapsible section or item.
   * @member {module:model/DocumentHtmlCollapsibleDisplaySettings} collapsibleSettings
   */
  exports.prototype['collapsibleSettings'] = undefined;
  /**
   * 
   * @member {String} display
   */
  exports.prototype['display'] = undefined;
  /**
   * 
   * @member {String} displayLabel
   */
  exports.prototype['displayLabel'] = undefined;
  /**
   * 
   * @member {Number} displayOrder
   */
  exports.prototype['displayOrder'] = undefined;
  /**
   * 
   * @member {Number} displayPageNumber
   */
  exports.prototype['displayPageNumber'] = undefined;
  /**
   * 
   * @member {Boolean} hideLabelWhenOpened
   */
  exports.prototype['hideLabelWhenOpened'] = undefined;
  /**
   * 
   * @member {String} inlineOuterStyle
   */
  exports.prototype['inlineOuterStyle'] = undefined;
  /**
   * 
   * @member {String} labelWhenOpened
   */
  exports.prototype['labelWhenOpened'] = undefined;
  /**
   * 
   * @member {String} preLabel
   */
  exports.prototype['preLabel'] = undefined;
  /**
   * 
   * @member {Boolean} scrollToTopWhenOpened
   */
  exports.prototype['scrollToTopWhenOpened'] = undefined;
  /**
   * 
   * @member {String} tableStyle
   */
  exports.prototype['tableStyle'] = undefined;



  return exports;
}));