Map<String, dynamic> toMap() { return <String, dynamic>{ 'absolute': absolute, 'percentage': percentage, }; }