ADATransaction.deserialize constructor

ADATransaction.deserialize(
  1. CborListValue cbor
)

Implementation

factory ADATransaction.deserialize(CborListValue cbor) {
  return ADATransaction(
      body: TransactionBody.deserialize(cbor.getIndex(0)),
      witnessSet: TransactionWitnessSet.deserialize(cbor.getIndex(1)),
      isValid: cbor.getIndex(2),
      data: cbor.getIndex<CborObject?>(3)?.castTo<AuxiliaryData, CborObject>(
          (e) => AuxiliaryData.deserialize(e)));
}