toCbor method

  1. @override
CborObject<Object?> toCbor([
  1. bool legacy = true
])
override

Converts the object to a CBOR object.

Implementation

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