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