src/rest-client/src/wallet/model/TransactionReceipt.js
/**
     * Constructs a <code>TransactionReceipt</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 {TransactionReceipt} obj Optional instance to populate.
     * @return {TransactionReceipt} The populated <code>TransactionReceipt</code> instance.
     * @memberof TransactionReceipt
     */
Constructs a TransactionReceipt 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 {TransactionReceipt} obj Optional instance to populate.
Constructs a TransactionReceipt 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 { TransactionReceipt } obj Optional instance to populate .
static constructFromObject(data, obj) {
        if (data) {
            obj = obj || new TransactionReceipt()
            if (data.hasOwnProperty('blockHash')) {
                obj.blockHash = ApiClient.convertToType(data.blockHash, 'String')
            }
            if (data.hasOwnProperty('blockNumber')) {
                obj.blockNumber = ApiClient.convertToType(data.blockNumber, 'String')
            }
            if (data.hasOwnProperty('codeFormat')) {
                obj.codeFormat = ApiClient.convertToType(data.codeFormat, 'String')
            }
            if (data.hasOwnProperty('contractAddress')) {
                obj.contractAddress = ApiClient.convertToType(data.contractAddress, 'String')
            }
            if (data.hasOwnProperty('feePayer')) {
                obj.feePayer = ApiClient.convertToType(data.feePayer, 'String')
            }
            if (data.hasOwnProperty('feePayerSignatures')) {
                obj.feePayerSignatures = ApiClient.convertToType(data.feePayerSignatures, [FeePayerSignaturesObj])
            }
            if (data.hasOwnProperty('from')) {
                obj.from = ApiClient.convertToType(data.from, 'String')
            }
            if (data.hasOwnProperty('gas')) {
                obj.gas = ApiClient.convertToType(data.gas, 'String')
            }
            if (data.hasOwnProperty('gasPrice')) {
                obj.gasPrice = ApiClient.convertToType(data.gasPrice, 'String')
            }
            if (data.hasOwnProperty('gasUsed')) {
                obj.gasUsed = ApiClient.convertToType(data.gasUsed, 'String')
            }
            if (data.hasOwnProperty('hash')) {
                obj.hash = ApiClient.convertToType(data.hash, 'String')
            }
            if (data.hasOwnProperty('humanReadable')) {
                obj.humanReadable = ApiClient.convertToType(data.humanReadable, 'Boolean')
            }
            if (data.hasOwnProperty('input')) {
                obj.input = ApiClient.convertToType(data.input, 'String')
            }
            if (data.hasOwnProperty('logs')) {
                obj.logs = ApiClient.convertToType(data.logs, [EventLog])
            }
            if (data.hasOwnProperty('logsBloom')) {
                obj.logsBloom = ApiClient.convertToType(data.logsBloom, 'String')
            }
            if (data.hasOwnProperty('nonce')) {
                obj.nonce = ApiClient.convertToType(data.nonce, 'String')
            }
            if (data.hasOwnProperty('senderTxHash')) {
                obj.senderTxHash = ApiClient.convertToType(data.senderTxHash, 'String')
            }
            if (data.hasOwnProperty('signatures')) {
                obj.signatures = ApiClient.convertToType(data.signatures, [Signature])
            }
            if (data.hasOwnProperty('status')) {
                obj.status = ApiClient.convertToType(data.status, 'String')
            }
            if (data.hasOwnProperty('transactionHash')) {
                obj.transactionHash = ApiClient.convertToType(data.transactionHash, 'String')
            }
            if (data.hasOwnProperty('transactionIndex')) {
                obj.transactionIndex = ApiClient.convertToType(data.transactionIndex, 'String')
            }
            if (data.hasOwnProperty('type')) {
                obj.type = ApiClient.convertToType(data.type, 'String')
            }
            if (data.hasOwnProperty('typeInt')) {
                obj.typeInt = ApiClient.convertToType(data.typeInt, 'Number')
            }
            if (data.hasOwnProperty('value')) {
                obj.value = ApiClient.convertToType(data.value, 'String')
            }
            if (data.hasOwnProperty('to')) {
                obj.to = ApiClient.convertToType(data.to, 'String')
            }
        }
        return obj
    }
static constructFromObject ( data , obj ) { if ( data ) { obj = obj || new TransactionReceipt ( ) if ( data . hasOwnProperty ( 'blockHash' ) ) { obj . blockHash = ApiClient . convertToType ( data . blockHash , 'String' ) } if ( data . hasOwnProperty ( 'blockNumber' ) ) { obj . blockNumber = ApiClient . convertToType ( data . blockNumber , 'String' ) } if ( data . hasOwnProperty ( 'codeFormat' ) ) { obj . codeFormat = ApiClient . convertToType ( data . codeFormat , 'String' ) } if ( data . hasOwnProperty ( 'contractAddress' ) ) { obj . contractAddress = ApiClient . convertToType ( data . contractAddress , 'String' ) } if ( data . hasOwnProperty ( 'feePayer' ) ) { obj . feePayer = ApiClient . convertToType ( data . feePayer , 'String' ) } if ( data . hasOwnProperty ( 'feePayerSignatures' ) ) { obj . feePayerSignatures = ApiClient . convertToType ( data . feePayerSignatures , [ FeePayerSignaturesObj ] ) } if ( data . hasOwnProperty ( 'from' ) ) { obj . from = ApiClient . convertToType ( data . from , 'String' ) } if ( data . hasOwnProperty ( 'gas' ) ) { obj . gas = ApiClient . convertToType ( data . gas , 'String' ) } if ( data . hasOwnProperty ( 'gasPrice' ) ) { obj . gasPrice = ApiClient . convertToType ( data . gasPrice , 'String' ) } if ( data . hasOwnProperty ( 'gasUsed' ) ) { obj . gasUsed = ApiClient . convertToType ( data . gasUsed , 'String' ) } if ( data . hasOwnProperty ( 'hash' ) ) { obj . hash = ApiClient . convertToType ( data . hash , 'String' ) } if ( data . hasOwnProperty ( 'humanReadable' ) ) { obj . humanReadable = ApiClient . convertToType ( data . humanReadable , 'Boolean' ) } if ( data . hasOwnProperty ( 'input' ) ) { obj . input = ApiClient . convertToType ( data . input , 'String' ) } if ( data . hasOwnProperty ( 'logs' ) ) { obj . logs = ApiClient . convertToType ( data . logs , [ EventLog ] ) } if ( data . hasOwnProperty ( 'logsBloom' ) ) { obj . logsBloom = ApiClient . convertToType ( data . logsBloom , 'String' ) } if ( data . hasOwnProperty ( 'nonce' ) ) { obj . nonce = ApiClient . convertToType ( data . nonce , 'String' ) } if ( data . hasOwnProperty ( 'senderTxHash' ) ) { obj . senderTxHash = ApiClient . convertToType ( data . senderTxHash , 'String' ) } if ( data . hasOwnProperty ( 'signatures' ) ) { obj . signatures = ApiClient . convertToType ( data . signatures , [ Signature ] ) } if ( data . hasOwnProperty ( 'status' ) ) { obj . status = ApiClient . convertToType ( data . status , 'String' ) } if ( data . hasOwnProperty ( 'transactionHash' ) ) { obj . transactionHash = ApiClient . convertToType ( data . transactionHash , 'String' ) } if ( data . hasOwnProperty ( 'transactionIndex' ) ) { obj . transactionIndex = ApiClient . convertToType ( data . transactionIndex , 'String' ) } if ( data . hasOwnProperty ( 'type' ) ) { obj . type = ApiClient . convertToType ( data . type , 'String' ) } if ( data . hasOwnProperty ( 'typeInt' ) ) { obj . typeInt = ApiClient . convertToType ( data . typeInt , 'Number' ) } if ( data . hasOwnProperty ( 'value' ) ) { obj . value = ApiClient . convertToType ( data . value , 'String' ) } if ( data . hasOwnProperty ( 'to' ) ) { obj . to = ApiClient . convertToType ( data . to , 'String' ) } } return obj }
Constructs a <code>TransactionReceipt</code> from a plain JavaScript object, optionally creating a new instance.
Constructs a <code > TransactionReceipt< / code > from a plain JavaScript object optionally creating a new instance .