toWasm static method

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

Returns this as a WASM canonical abi value.

Implementation

static (int, Object?) toWasm(WitGeneratorInput value) => switch (value) {
  FileSystemPaths() => (0, value.toWasm()),
  InMemoryFiles() => (1, value.toWasm()),
};