jsToMap function

Map<String, dynamic> jsToMap(
  1. dynamic jsObject
)

Implementation

Map<String, dynamic> jsToMap(jsObject) {
  if (jsObject == null) return {};

  Map<String, dynamic> map = Map.fromIterable(_getKeysOfObject(jsObject), value: (key) => convertTo(key, jsObject));

  // _getKeysOfObject(jsObject).forEach((element) {
  //   print(map[element] is int);
  //   print(map[element]);
  // });
  return map;
}