toValue method
DBusValue
toValue()
Implementation
DBusValue toValue() {
final result = DBusDict.stringVariant({
"xesam:title": DBusString(title),
if (length != null) "mpris:length": DBusInt64(length!.inMicroseconds),
if (artist != null) "xesam:artist": DBusArray.string(artist!),
if (lyrics != null) "xesam:asText": DBusString(lyrics!),
if (artUrl != null) "mpris:artUrl": DBusString(artUrl!),
if (album != null) "xesam:album": DBusString(album!),
if (albumArtist != null)
"xesam:albumArtist": DBusArray.string(albumArtist!),
if (discNumber != null) "xesam:discNumber": DBusInt64(discNumber!),
if (trackNumber != null) "xesam:trackNumber": DBusInt64(trackNumber!),
if (genre != null) "xesam:genre": DBusArray.string(genre!),
});
return result;
}