@goplus/sdk-node
Version:
GoPlus API SDK for Node.js
80 lines (73 loc) • 2.95 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ResponseWrapperSolanaTokenSecurityMetadata = void 0;
require("core-js/modules/es.symbol.description.js");
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 ResponseWrapperSolanaTokenSecurityMetadata model module.
* @module model/ResponseWrapperSolanaTokenSecurityMetadata
* @version 1.0
*/
class ResponseWrapperSolanaTokenSecurityMetadata {
/**
* Constructs a new <code>ResponseWrapperSolanaTokenSecurityMetadata</code>.
* Contains the metadata information of the token.
* @alias module:model/ResponseWrapperSolanaTokenSecurityMetadata
* @class
*/
constructor() {}
/**
* Constructs a <code>ResponseWrapperSolanaTokenSecurityMetadata</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/ResponseWrapperSolanaTokenSecurityMetadata} obj Optional instance to populate.
* @return {module:model/ResponseWrapperSolanaTokenSecurityMetadata} The populated <code>ResponseWrapperSolanaTokenSecurityMetadata</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new ResponseWrapperSolanaTokenSecurityMetadata();
if (data.hasOwnProperty('symbol')) obj.symbol = _ApiClient.ApiClient.convertToType(data['symbol'], 'String');
if (data.hasOwnProperty('name')) obj.name = _ApiClient.ApiClient.convertToType(data['name'], 'String');
if (data.hasOwnProperty('description')) obj.description = _ApiClient.ApiClient.convertToType(data['description'], 'String');
if (data.hasOwnProperty('uri')) obj.uri = _ApiClient.ApiClient.convertToType(data['uri'], 'String');
}
return obj;
}
}
/**
* Symbol of the token.
* @member {String} symbol
*/
exports.ResponseWrapperSolanaTokenSecurityMetadata = ResponseWrapperSolanaTokenSecurityMetadata;
ResponseWrapperSolanaTokenSecurityMetadata.prototype.symbol = undefined;
/**
* Name of the token.
* @member {String} name
*/
ResponseWrapperSolanaTokenSecurityMetadata.prototype.name = undefined;
/**
* Description of the token.
* @member {String} description
*/
ResponseWrapperSolanaTokenSecurityMetadata.prototype.description = undefined;
/**
* URI pointing to related token information.
* @member {String} uri
*/
ResponseWrapperSolanaTokenSecurityMetadata.prototype.uri = undefined;
;