parseSimilarArtists static method

ArtistDetailed parseSimilarArtists(
  1. dynamic item
)

Implementation

static ArtistDetailed parseSimilarArtists(dynamic item) {
  return ArtistDetailed(
    type: "ARTIST",
    artistId: traverseString(item, ["browseId"]) ?? '',
    name: traverseString(item, ["runs", "text"]) ?? '',
    thumbnails: traverseList(item, ["thumbnails"])
        .map((item) => ThumbnailFull.fromMap(item))
        .toList(),
  );
}