toJson method
Implementation
Map<String, dynamic> toJson() => {
'totalTracksPlayed': totalTracksPlayed,
'currentQueueSize': currentQueueSize,
'historySize': historySize,
'isPlaying': isPlaying,
'isPaused': isPaused,
'currentVolume': currentVolume,
'repeatMode': repeatMode,
};