toMap method
Convert this object to a Map containing the properties of this object as values.
Implementation
Map<String, dynamic> toMap() {
final map = {
'path': trackPath,
'dataBuffer': dataBuffer,
'title': trackTitle,
'author': trackAuthor,
'albumArtUrl': albumArtUrl,
'albumArtAsset': albumArtAsset,
'albumArtFile': albumArtFile,
'bufferCodecIndex': codec.index,
};
return map;
}