hitsFromListToMap method

Map<String, Map<String, Object>> hitsFromListToMap(
  1. List<Hit> list
)

Implementation

Map<String, Map<String, Object>> hitsFromListToMap(List<Hit> list) {
  Map<String, Map<String, Object>> result = {};
  list.forEach((element) {
    result.addEntries({element.id: element.bodyTrack}.entries);
  });
  return result;
}