parseAlbumPlaylistIdIfExists function
- JsonMap? data
Parses the playlistId
of an album.
Implementation
String? parseAlbumPlaylistIdIfExists(JsonMap? data) {
// the content of the data changes based on whether the user is authenticated or not
if (data == null) return null;
return (nav(data, WATCH_PID, nullIfAbsent: true) ??
nav(data, WATCH_PLAYLIST_ID, nullIfAbsent: true))
as String?;
}