addAllFromJs method

void addAllFromJs(
  1. JsMap jsOther
)

Adds all key/value pairs of the JS object jsOther to this map.

If a key of jsOther is already in this map, its value is overwritten.

The operation is equivalent to doing this[key] = value for each key and associated value in jsOther.

This is similar to addAll, but for a JsMap instead of a JsBackedMap/Map.

Implementation

void addAllFromJs(JsMap jsOther) {
  _Object.assign(jsObject, jsOther);
}