jsToMap function
A workaround to converting an object from JS to a Dart Map.
Implementation
Map jsToMap(jsObject) {
return Map.fromIterable(_getKeysOfObject(jsObject), value: (key) {
// print(
// '${(jsObject is djs.JsObject)}, $key, ${jsObject.runtimeType} ${_nested(jsObject)}');
return _nested(js.getProperty(jsObject, key));
});
}