AlbumFull.fromMap constructor

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

Implementation

AlbumFull.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(),
      songs = (map['songs'] as List)
          .map((item) => SongDetailed.fromMap(item))
          .toList();