UNPKG

@goplus/sdk-node

Version:
65 lines (60 loc) 2.62 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ResponseWrapperSuiTokenSecurityMintable = 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 ResponseWrapperSuiTokenSecurityMintable model module. * @module model/ResponseWrapperSuiTokenSecurityMintable * @version 1.0 */ class ResponseWrapperSuiTokenSecurityMintable { /** * Constructs a new <code>ResponseWrapperSuiTokenSecurityMintable</code>. * Whether the token is mintable. * @alias module:model/ResponseWrapperSuiTokenSecurityMintable * @class */ constructor() {} /** * Constructs a <code>ResponseWrapperSuiTokenSecurityMintable</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/ResponseWrapperSuiTokenSecurityMintable} obj Optional instance to populate. * @return {module:model/ResponseWrapperSuiTokenSecurityMintable} The populated <code>ResponseWrapperSuiTokenSecurityMintable</code> instance. */ static constructFromObject(data, obj) { if (data) { obj = obj || new ResponseWrapperSuiTokenSecurityMintable(); if (data.hasOwnProperty('cap_owner')) obj.cap_owner = _ApiClient.ApiClient.convertToType(data['cap_owner'], 'String'); if (data.hasOwnProperty('value')) obj.value = _ApiClient.ApiClient.convertToType(data['value'], 'String'); } return obj; } } /** * The owner cap of the function. This field can have three possible values: A. A specific address indicates the address that can currently operate this function. B.'Shared' means any address can operate this function. C.'Immutable' means this function can no longer be invoked. * @member {String} cap_owner */ exports.ResponseWrapperSuiTokenSecurityMintable = ResponseWrapperSuiTokenSecurityMintable; ResponseWrapperSuiTokenSecurityMintable.prototype.cap_owner = undefined; /** * Status indicator, where \"1\" means the funtcion is available. * @member {String} value */ ResponseWrapperSuiTokenSecurityMintable.prototype.value = undefined;