toWasm method

List<Object?> toWasm()

Returns this as a WASM canonical abi value.

Implementation

List<Object?> toWasm() => [
  action.toWasm(),
  (oldValue == null
      ? const None().toWasm()
      : Option.fromValue(oldValue).toWasm(YValue.toWasm)),
  (newValue == null
      ? const None().toWasm()
      : Option.fromValue(newValue).toWasm(YValue.toWasm)),
];