toCbor method
Converts the object to a CBOR object.
Implementation
@override
CborObject toCbor() {
return CborListValue.fixedLength([
type.toCbor(),
CborIntValue(n),
CborListValue.fixedLength(nativeScripts.map((e) => e.toCbor()).toList())
]);
}