parseArtistFeaturedOn static method

PlaylistDetailed parseArtistFeaturedOn(
  1. dynamic item,
  2. ArtistBasic artistBasic
)

Implementation

static PlaylistDetailed parseArtistFeaturedOn(
    dynamic item, ArtistBasic artistBasic) {
  return PlaylistDetailed(
    type: "PLAYLIST",
    playlistId:
        traverseString(item, ["navigationEndpoint", "browseId"]) ?? '',
    name: traverseString(item, ["runs", "text"]) ?? '',
    artist: artistBasic,
    thumbnails: traverseList(item, ["thumbnails"])
        .map((item) => ThumbnailFull.fromMap(item))
        .toList(),
  );
}