toWasm static method

(int, Object?) toWasm(
  1. YValue value
)

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)),
};