hitsToMap static method
Implementation
static Map<String, Map<String, Object>> hitsToMap(List<Hit> listOfHits) {
Map<String, Map<String, Object>> result = {};
listOfHits.forEach((element) {
result.addEntries({element.id: element.bodyTrack}.entries);
});
return result;
}