toWasm method

List<Object?> toWasm()

Returns this as a WASM canonical abi value.

Implementation

List<Object?> toWasm() => [
  entryType.toWasm(),
  bytes,
  pathBytes,
  (path == null ? const None().toWasm() : Option.fromValue(path).toWasm()),
  (linkNameBytes == null
      ? const None().toWasm()
      : Option.fromValue(linkNameBytes).toWasm()),
  (linkName == null
      ? const None().toWasm()
      : Option.fromValue(linkName).toWasm()),
  (mode == null ? const None().toWasm() : Option.fromValue(mode).toWasm()),
  (uid == null ? const None().toWasm() : Option.fromValue(uid).toWasm()),
  (gid == null ? const None().toWasm() : Option.fromValue(gid).toWasm()),
  (mtime == null ? const None().toWasm() : Option.fromValue(mtime).toWasm()),
  (usernameBytes == null
      ? const None().toWasm()
      : Option.fromValue(usernameBytes).toWasm()),
  (username == null
      ? const None().toWasm()
      : Option.fromValue(username).toWasm()),
  (groupnameBytes == null
      ? const None().toWasm()
      : Option.fromValue(groupnameBytes).toWasm()),
  (groupname == null
      ? const None().toWasm()
      : Option.fromValue(groupname).toWasm()),
  (deviceMajor == null
      ? const None().toWasm()
      : Option.fromValue(deviceMajor).toWasm()),
  (deviceMinor == null
      ? const None().toWasm()
      : Option.fromValue(deviceMinor).toWasm()),
  (cksum == null ? const None().toWasm() : Option.fromValue(cksum).toWasm()),
  formatErrors,
];