parseArtistTopAlbum static method
Implementation
static AlbumDetailed parseArtistTopAlbum(
dynamic item, ArtistBasic artistBasic) {
return AlbumDetailed(
type: "ALBUM",
albumId: traverseList(item, ["browseId"]).isEmpty
? ''
: traverseList(item, ["browseId"]).last,
playlistId:
traverseString(item, ["musicPlayButtonRenderer", "playlistId"]) ?? '',
name: traverseString(item, ["title", "text"]) ?? '',
artist: artistBasic,
year: processYear(traverseList(item, ["subtitle", "text"]).last),
thumbnails: traverseList(item, ["thumbnails"])
.map((item) => ThumbnailFull.fromMap(item))
.toList(),
);
}