toWasm static method
Returns this as a WASM canonical abi value.
Implementation
static (int, Object?) toWasm(YTextDelta value) => switch (value) {
YTextDeltaInsert() => (0, value.toWasm()),
YTextDeltaDelete() => (1, value.toWasm()),
YTextDeltaRetain() => (2, value.toWasm()),
};