toCbor method
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(),
  ]);
}