recursivelyJsifyObjects function
Implementation
dynamic recursivelyJsifyObjects(List<dynamic> list) {
final usrAttr = list.map((e) {
if (e is Map<String, dynamic>) {
// element was an object, Jsify it
return js.JsObject.jsify(e);
} else if (e is List<dynamic>) {
// nested list
return recursivelyJsifyObjects(e);
}
return e;
});
return js.JsArray.from(usrAttr);
}