@goplus/sdk-node
Version:
GoPlus API SDK for Node.js
71 lines (65 loc) • 2.75 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ResponseWrapperSolanaTokenSecurityLockedDetail = 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 ResponseWrapperSolanaTokenSecurityLockedDetail model module.
* @module model/ResponseWrapperSolanaTokenSecurityLockedDetail
* @version 1.0
*/
class ResponseWrapperSolanaTokenSecurityLockedDetail {
/**
* Constructs a new <code>ResponseWrapperSolanaTokenSecurityLockedDetail</code>.
* @alias module:model/ResponseWrapperSolanaTokenSecurityLockedDetail
* @class
*/
constructor() {}
/**
* Constructs a <code>ResponseWrapperSolanaTokenSecurityLockedDetail</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/ResponseWrapperSolanaTokenSecurityLockedDetail} obj Optional instance to populate.
* @return {module:model/ResponseWrapperSolanaTokenSecurityLockedDetail} The populated <code>ResponseWrapperSolanaTokenSecurityLockedDetail</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new ResponseWrapperSolanaTokenSecurityLockedDetail();
if (data.hasOwnProperty('amount')) obj.amount = _ApiClient.ApiClient.convertToType(data['amount'], 'String');
if (data.hasOwnProperty('opt_time')) obj.opt_time = _ApiClient.ApiClient.convertToType(data['opt_time'], 'String');
if (data.hasOwnProperty('end_time')) obj.end_time = _ApiClient.ApiClient.convertToType(data['end_time'], 'String');
}
return obj;
}
}
/**
* \"amount\" describes the number of token locked
* @member {String} amount
*/
exports.ResponseWrapperSolanaTokenSecurityLockedDetail = ResponseWrapperSolanaTokenSecurityLockedDetail;
ResponseWrapperSolanaTokenSecurityLockedDetail.prototype.amount = undefined;
/**
* \"opt_time\" describes when the token was locked
* @member {String} opt_time
*/
ResponseWrapperSolanaTokenSecurityLockedDetail.prototype.opt_time = undefined;
/**
* \"end_time\" describes when the token will be unlocked
* @member {String} end_time
*/
ResponseWrapperSolanaTokenSecurityLockedDetail.prototype.end_time = undefined;
;