UNPKG

@goplus/sdk-node

Version:
52 lines (49 loc) 1.5 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.JSONObject = void 0; var _ApiClient = require("../ApiClient"); /* * GoPlus Security API Document * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: 1.0 * * 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.45 * * Do not edit the class manually. * */ /** * The JSONObject model module. * @module model/JSONObject * @version 1.0 */ class JSONObject { /** * Constructs a new <code>JSONObject</code>. * @alias module:model/JSONObject * @class * @extends Object */ constructor() {} /** * Constructs a <code>JSONObject</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/JSONObject} obj Optional instance to populate. * @return {module:model/JSONObject} The populated <code>JSONObject</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new JSONObject(); _ApiClient.ApiClient.constructFromObject(data, obj, 'Object'); } return obj; } } exports.JSONObject = JSONObject;