keyByHeatmapId function

Map<HeatmapId, Heatmap> keyByHeatmapId(
  1. Iterable<Heatmap> heatmaps
)

Converts an Iterable of Heatmaps in a Map of HeatmapId -> Heatmap.

Implementation

Map<HeatmapId, Heatmap> keyByHeatmapId(
  Iterable<Heatmap> heatmaps,
) {
  return keyByMapsObjectId<Heatmap>(heatmaps).cast<HeatmapId, Heatmap>();
}