toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'identifier': identifier,
'isSeekable': isSeekable,
'author': author,
'length': length,
'isStream': isStream,
'position': position,
'title': title,
if (uri != null) 'uri': uri,
if (artworkUrl != null) 'artworkUrl': artworkUrl,
if (isrc != null) 'isrc': isrc,
'sourceName': sourceName,
};
}