hitsFromListToMap method
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;
}