Converts a JsArray a to a List. Also converts values using jsToDart.
a
List? jsArrayToList(JsArray? a) { if (a == null) return null; return a.map(jsToDart).toList(); }