hitsToMap static method

Map<String, Map<String, Object>> hitsToMap(
  1. List<Hit> listOfHits
)

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