Updated OccupancyHeatMapModel model with what the api returns, and only used the necessary fields that the api returns for this feature to work.

This commit is contained in:
Faris Armoush
2025-05-14 10:51:19 +03:00
parent 300f9ae358
commit d1bb8da484
2 changed files with 17 additions and 8 deletions
@@ -68,7 +68,10 @@ class OccupancyHeatMapBox extends StatelessWidget {
Expanded(
child: OccupancyHeatMap(
heatMapData: state.heatMapData.asMap().map(
(_, value) => MapEntry(value.date, value.occupancy),
(_, value) => MapEntry(
value.eventDate,
value.countTotalPresenceDetected,
),
),
),
),