toPlaylistModel method Null safety

List<PlaylistModel> toPlaylistModel()

Used to convert a List dynamic into a List PlaylistModel.

Implementation

List<PlaylistModel> toPlaylistModel() =>
    map((e) => PlaylistModel(e)).toList();