Map<String, dynamic> toMap() { return <String, dynamic>{ 'anomalyDetectionBaseline': anomalyDetectionBaseline, 'state': state, }; }