AlbumDetailed.fromMap constructor

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

Implementation

AlbumDetailed.fromMap(Map<String, dynamic> map)
    : type = map['type'] as String,
      albumId = map['albumId'] as String,
      playlistId = map['playlistId'] as String,
      name = map['name'] as String,
      artist = ArtistBasic.fromMap(map['artist']),
      year = map['year'] as int?,
      thumbnails = (map['thumbnails'] as List)
          .map((item) => ThumbnailFull.fromMap(item))
          .toList();