UNPKG

@goplus/sdk-node

Version:
92 lines (83 loc) 3.23 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ApproveErc1155Result = void 0; var _ApiClient = require("../ApiClient"); var _ApproveAddressInfo = require("./ApproveAddressInfo"); /* * 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 ApproveErc1155Result model module. * @module model/ApproveErc1155Result * @version 1.0 */ class ApproveErc1155Result { /** * Constructs a new <code>ApproveErc1155Result</code>. * @alias module:model/ApproveErc1155Result * @class */ constructor() {} /** * Constructs a <code>ApproveErc1155Result</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/ApproveErc1155Result} obj Optional instance to populate. * @return {module:model/ApproveErc1155Result} The populated <code>ApproveErc1155Result</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new ApproveErc1155Result(); if (data.hasOwnProperty('address_info')) obj.address_info = _ApproveAddressInfo.ApproveAddressInfo.constructFromObject(data['address_info']); if (data.hasOwnProperty('approved_contract')) obj.approved_contract = _ApiClient.ApiClient.convertToType(data['approved_contract'], 'String'); if (data.hasOwnProperty('approved_time')) obj.approved_time = _ApiClient.ApiClient.convertToType(data['approved_time'], 'Number'); if (data.hasOwnProperty('hash')) obj.hash = _ApiClient.ApiClient.convertToType(data['hash'], 'String'); if (data.hasOwnProperty('initial_approval_hash')) obj.initial_approval_hash = _ApiClient.ApiClient.convertToType(data['initial_approval_hash'], 'String'); if (data.hasOwnProperty('initial_approval_time')) obj.initial_approval_time = _ApiClient.ApiClient.convertToType(data['initial_approval_time'], 'Number'); } return obj; } } /** * @member {module:model/ApproveAddressInfo} address_info */ exports.ApproveErc1155Result = ApproveErc1155Result; ApproveErc1155Result.prototype.address_info = undefined; /** * Spender Address * @member {String} approved_contract */ ApproveErc1155Result.prototype.approved_contract = undefined; /** * Latest approval time * @member {Number} approved_time */ ApproveErc1155Result.prototype.approved_time = undefined; /** * Latest approval hash * @member {String} hash */ ApproveErc1155Result.prototype.hash = undefined; /** * Initial approval hash * @member {String} initial_approval_hash */ ApproveErc1155Result.prototype.initial_approval_hash = undefined; /** * Initial approval time * @member {Number} initial_approval_time */ ApproveErc1155Result.prototype.initial_approval_time = undefined;