Map<String, dynamic> jsObjectToMap(jsObject) { return Map.fromIterable( _getKeysOfObject(jsObject), value: (key) => js_util.getProperty(jsObject, key), ); }