toObject method
Returns the Transaction input as structured data to make working with JSON serializers easier.
Implementation
Map<String, dynamic> toObject(){
return {
'prevTxId': _prevTxnId,
'outputIndex': _prevTxnOutputIndex,
'sequenceNumber': sequenceNumber,
'script': _unlockingScriptBuilder?.getScriptSig().toHex()
};
}