UNPKG

genesys-workspace-client-js

Version:
99 lines (80 loc) 2.43 kB
/** * Workspace API * Agent API * * OpenAPI spec version: 9.0.000.97.4639 * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * * Swagger Codegen version: 2.4.5 * * Do not edit the class manually. * */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['ApiClient'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) if (!root.WorkspaceApi) { root.WorkspaceApi = {}; } root.WorkspaceApi.Kvpair = factory(root.WorkspaceApi.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The Kvpair model module. * @module model/Kvpair * @version 9.0.000.97.4639 */ /** * Constructs a new <code>Kvpair</code>. * @alias module:model/Kvpair * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>Kvpair</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/Kvpair} obj Optional instance to populate. * @return {module:model/Kvpair} The populated <code>Kvpair</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('key')) { obj['key'] = ApiClient.convertToType(data['key'], 'String'); } if (data.hasOwnProperty('type')) { obj['type'] = ApiClient.convertToType(data['type'], 'String'); } if (data.hasOwnProperty('value')) { obj['value'] = ApiClient.convertToType(data['value'], Object); } } return obj; } /** * @member {String} key */ exports.prototype['key'] = undefined; /** * @member {String} type */ exports.prototype['type'] = undefined; /** * Value - can be a string, number, or an array of kvpairs * @member {Object} value */ exports.prototype['value'] = undefined; return exports; }));