ArtistFull.fromMap constructor

ArtistFull.fromMap(
  1. Map<String, dynamic> map
)

Implementation

ArtistFull.fromMap(Map<String, dynamic> map)
    : artistId = map['artistId'] as String,
      name = map['name'] as String,
      type = map['type'] as String,
      thumbnails = (map['thumbnails'] as List)
          .map((item) => ThumbnailFull.fromMap(item))
          .toList(),
      topSongs = (map['topSongs'] as List)
          .map((item) => SongDetailed.fromMap(item))
          .toList(),
      topAlbums = (map['topAlbums'] as List)
          .map((item) => AlbumDetailed.fromMap(item))
          .toList(),
      topSingles = (map['topSingles'] as List)
          .map((item) => AlbumDetailed.fromMap(item))
          .toList(),
      topVideos = (map['topVideos'] as List)
          .map((item) => VideoDetailed.fromMap(item))
          .toList(),
      featuredOn = (map['featuredOn'] as List)
          .map((item) => PlaylistDetailed.fromMap(item))
          .toList(),
      similarArtists = (map['similarArtists'] as List)
          .map((item) => ArtistDetailed.fromMap(item))
          .toList();