toWasm static method
Returns this as a WASM canonical abi value.
Implementation
static (int, Object?) toWasm(YValue value) => switch (value) {
JsonValueItem() => (0, value.toWasm()),
YDoc() => (1, value.toWasm()),
YType() => (2, YType.toWasm(value)),
};