Map<String, dynamic> toMap() { return <String, dynamic>{ 'maxScore': maxScore, 'scoreSum': scoreSum, 'weightedDurationSum': weightedDurationSum, }; }