toCbor method

  1. @override
CborListValue<CborObject> toCbor()
override

Converts the object to a CBOR object.

Implementation

@override
CborListValue toCbor() {
  return CborListValue.definite([
    type.toCbor(),
    votingCredential.toCbor(),
    CborUnsignedValue.u64(coin),
    anchor?.toCbor() ?? const CborNullValue(),
  ]);
}