UNPKG

@goplus/sdk-node

Version:
70 lines (64 loc) 2.55 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SolanaTxAssetChanges = void 0; var _ApiClient = require("../ApiClient"); var _SolanaTxAssetChange = require("./SolanaTxAssetChange"); var _SolanaTxSolChange = require("./SolanaTxSolChange"); /* * 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 SolanaTxAssetChanges model module. * @module model/SolanaTxAssetChanges * @version 1.0 */ class SolanaTxAssetChanges { /** * Constructs a new <code>SolanaTxAssetChanges</code>. * @alias module:model/SolanaTxAssetChanges * @class */ constructor() {} /** * Constructs a <code>SolanaTxAssetChanges</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/SolanaTxAssetChanges} obj Optional instance to populate. * @return {module:model/SolanaTxAssetChanges} The populated <code>SolanaTxAssetChanges</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new SolanaTxAssetChanges(); if (data.hasOwnProperty('nft_changes')) obj.nft_changes = _ApiClient.ApiClient.convertToType(data['nft_changes'], [_SolanaTxAssetChange.SolanaTxAssetChange]); if (data.hasOwnProperty('token_changes')) obj.token_changes = _ApiClient.ApiClient.convertToType(data['token_changes'], [_SolanaTxAssetChange.SolanaTxAssetChange]); if (data.hasOwnProperty('sol_changes')) obj.sol_changes = _ApiClient.ApiClient.convertToType(data['sol_changes'], [_SolanaTxSolChange.SolanaTxSolChange]); } return obj; } } /** * @member {Array.<module:model/SolanaTxAssetChange>} nft_changes */ exports.SolanaTxAssetChanges = SolanaTxAssetChanges; SolanaTxAssetChanges.prototype.nft_changes = undefined; /** * @member {Array.<module:model/SolanaTxAssetChange>} token_changes */ SolanaTxAssetChanges.prototype.token_changes = undefined; /** * @member {Array.<module:model/SolanaTxSolChange>} sol_changes */ SolanaTxAssetChanges.prototype.sol_changes = undefined;