WasmScopeUpdate.fromJs constructor
WasmScopeUpdate.fromJs(
- JSAny? value
Creates a typed update from a raw JavaScript payload.
Implementation
factory WasmScopeUpdate.fromJs(JSAny? value) {
final raw = value as JSObject;
return WasmScopeUpdate(
scopeHandle:
(unsafe.getProperty(raw, 'scopeHandle') as JSNumber).toDartDouble,
scopeName: (unsafe.getProperty(raw, 'scopeName') as JSString).toDart,
path: (unsafe.getProperty(raw, 'path') as JSString).toDart,
value: unsafe.jsToDart<Object?>(unsafe.getProperty(raw, 'value')),
);
}