Converts JS object to Map
Map mapify(JsObject obj) { return jsonDecode(context['JSON'].callMethod('stringify', [obj])); }