src/rest-client/src/kip17/model/Kip17ContractInfoResponse.js
/**
     * Constructs a <code>Kip17ContractInfoResponse</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 {Kip17ContractInfoResponse} obj Optional instance to populate.
     * @return {Kip17ContractInfoResponse} The populated <code>Kip17ContractInfoResponse</code> instance.
     * @memberof Kip17ContractInfoResponse
     */
Constructs a Kip17ContractInfoResponse 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 {Kip17ContractInfoResponse} obj Optional instance to populate.
Constructs a Kip17ContractInfoResponse 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 { Kip17ContractInfoResponse } obj Optional instance to populate .
static constructFromObject(data, obj) {
        if (data) {
            obj = obj || new Kip17ContractInfoResponse()
            if (data.hasOwnProperty('address')) {
                obj.address = ApiClient.convertToType(data.address, 'String')
            }
            if (data.hasOwnProperty('alias')) {
                obj.alias = ApiClient.convertToType(data.alias, 'String')
            }
            if (data.hasOwnProperty('name')) {
                obj.name = ApiClient.convertToType(data.name, 'String')
            }
            if (data.hasOwnProperty('symbol')) {
                obj.symbol = ApiClient.convertToType(data.symbol, 'String')
            }
        }
        return obj
    }
static constructFromObject ( data , obj ) { if ( data ) { obj = obj || new Kip17ContractInfoResponse ( ) if ( data . hasOwnProperty ( 'address' ) ) { obj . address = ApiClient . convertToType ( data . address , 'String' ) } if ( data . hasOwnProperty ( 'alias' ) ) { obj . alias = ApiClient . convertToType ( data . alias , 'String' ) } if ( data . hasOwnProperty ( 'name' ) ) { obj . name = ApiClient . convertToType ( data . name , 'String' ) } if ( data . hasOwnProperty ( 'symbol' ) ) { obj . symbol = ApiClient . convertToType ( data . symbol , 'String' ) } } return obj }
Constructs a <code>Kip17ContractInfoResponse</code> from a plain JavaScript object, optionally creating a new instance.
Constructs a <code > Kip17ContractInfoResponse< / code > from a plain JavaScript object optionally creating a new instance .