import 'package:flutter/material.dart'; import 'package:syncrow_web/utils/color_manager.dart'; class AirQualityDataModel { const AirQualityDataModel({ required this.date, this.aqi, this.pm25, this.pm10, this.hcho, this.tvoc, this.co2, }); final DateTime date; final double? aqi; final double? pm25; final double? pm10; final double? hcho; final double? tvoc; final double? co2; static final Map metricColors = { 'aqi': ColorsManager.goodGreen.withValues(alpha: 0.7), 'pm25': ColorsManager.moderateYellow.withValues(alpha: 0.7), 'pm10': ColorsManager.poorOrange.withValues(alpha: 0.7), 'hcho': ColorsManager.unhealthyRed.withValues(alpha: 0.7), 'tvoc': ColorsManager.severePink.withValues(alpha: 0.7), 'co2': ColorsManager.hazardousPurple.withValues(alpha: 0.7), }; }