Returns this as a WASM canonical abi value.
static (int, Object?) toWasm(WasmType value) => switch (value) { ModuleType() => (0, value.toWasm()), ComponentType() => (1, value.toWasm()), };