TransactionScript.fromJson constructor
TransactionScript.fromJson(
- Map<String, dynamic> data
)
Implementation
factory TransactionScript.fromJson(Map<String, dynamic> data) {
return TransactionScript(
gasPrice: parseBigInt(data['gasPrice']),
gasLimit: parseBigInt(data['gasLimit']),
maturity: data['maturity'],
scriptLength: data['scriptLength'],
scriptDataLength: data['scriptDataLength'],
receiptsRoot: data['receiptsRoot'],
script: data['script'],
scriptData: data['scriptData'],
inputs: _parseInputs(data),
outputs: _parseOutputs(data),
witnesses: _parseWitnesses(data));
}