toWasm static method
Returns this as a WASM canonical abi value.
Implementation
static (int, Object?) toWasm(YEvent value) => switch (value) {
YArrayEvent() => (0, value.toWasm()),
YMapEvent() => (1, value.toWasm()),
YTextEvent() => (2, value.toWasm()),
};