toWasm static method
Returns this as a WASM canonical abi value.
Implementation
static (int, Object?) toWasm(YTransaction value) => switch (value) {
ReadTransaction() => (0, value.toWasm()),
WriteTransaction() => (1, value.toWasm()),
};