Json serialization
Map<String, dynamic> toJson() { return { 'favorite_value': favoriteValue, 'last_values': lastValues, }; }