src/rest-client/src/kip7/model/MintKip7TokenRequest.js
/**
     * Constructs a <code>MintKip7TokenRequest</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 {MintKip7TokenRequest} obj Optional instance to populate.
     * @return {MintKip7TokenRequest} The populated <code>MintKip7TokenRequest</code> instance.
     * @memberof MintKip7TokenRequest
     */
Constructs a MintKip7TokenRequest from a plain JavaScript object, optionally creating a new instance.
Copies all relevant properties from data to obj if supplied or a new instance if not.
@param {Object} data The plain JavaScript object bearing properties of interest.
@param {MintKip7TokenRequest} obj Optional instance to populate.
Constructs a MintKip7TokenRequest from a plain JavaScript object optionally creating a new instance . Copies all relevant properties from data to obj if supplied or a new instance if not . @param { Object } data The plain JavaScript object bearing properties of interest . @param { MintKip7TokenRequest } obj Optional instance to populate .
static constructFromObject(data, obj) {
        if (data) {
            obj = obj || new MintKip7TokenRequest()
            if (data.hasOwnProperty('to')) {
                obj.to = ApiClient.convertToType(data.to, 'String')
            }
            if (data.hasOwnProperty('amount')) {
                obj.amount = ApiClient.convertToType(data.amount, 'String')
            }
        }
        return obj
    }
static constructFromObject ( data , obj ) { if ( data ) { obj = obj || new MintKip7TokenRequest ( ) if ( data . hasOwnProperty ( 'to' ) ) { obj . to = ApiClient . convertToType ( data . to , 'String' ) } if ( data . hasOwnProperty ( 'amount' ) ) { obj . amount = ApiClient . convertToType ( data . amount , 'String' ) } } return obj }
Constructs a <code>MintKip7TokenRequest</code> from a plain JavaScript object, optionally creating a new instance.
Constructs a <code > MintKip7TokenRequest< / code > from a plain JavaScript object optionally creating a new instance .