Map<String, dynamic> toMap() { return <String, dynamic>{ 'metricType': metricType, 'targetValue': targetValue, }; }