mapToJSObj method

Object mapToJSObj(
  1. Map map
)

Implementation

Object mapToJSObj(Map<dynamic, dynamic> map) {
  var object = js.newObject();
  map.forEach((k, v) {
    var key = k;
    var value = (v is Map) ? mapToJSObj(v) : v;
    js.setProperty(object, key, value);
  });
  return object;
}