@goplus/sdk-node
Version:
GoPlus API SDK for Node.js
71 lines (65 loc) • 2.22 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ResponseWrapperobject = 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 ResponseWrapperobject model module.
* @module model/ResponseWrapperobject
* @version 1.0
*/
class ResponseWrapperobject {
/**
* Constructs a new <code>ResponseWrapperobject</code>.
* @alias module:model/ResponseWrapperobject
* @class
*/
constructor() {}
/**
* Constructs a <code>ResponseWrapperobject</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/ResponseWrapperobject} obj Optional instance to populate.
* @return {module:model/ResponseWrapperobject} The populated <code>ResponseWrapperobject</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new ResponseWrapperobject();
if (data.hasOwnProperty('code')) obj.code = _ApiClient.ApiClient.convertToType(data['code'], 'Number');
if (data.hasOwnProperty('message')) obj.message = _ApiClient.ApiClient.convertToType(data['message'], 'String');
if (data.hasOwnProperty('result')) obj.result = _ApiClient.ApiClient.convertToType(data['result'], Object);
}
return obj;
}
}
/**
* Code 1: Success
* @member {Number} code
*/
exports.ResponseWrapperobject = ResponseWrapperobject;
ResponseWrapperobject.prototype.code = undefined;
/**
* Response message
* @member {String} message
*/
ResponseWrapperobject.prototype.message = undefined;
/**
* Response result
* @member {Object} result
*/
ResponseWrapperobject.prototype.result = undefined;
;