toCbor method

  1. @override
CborObject toCbor([
  1. bool legacy = true
])
override

Converts the object to a CBOR object.

Implementation

@override
CborObject toCbor([bool legacy = true]) {
  return CborListValue.fixedLength([
    type.toCbor(),
    CborTagValue(CborBytesValue(plutusData.serialize()), _plutusDataOptionTag)
  ]);
}