diff --git a/lib/src/models/album.dart b/lib/src/models/album.dart index bd12cda..9cf0995 100644 --- a/lib/src/models/album.dart +++ b/lib/src/models/album.dart @@ -22,10 +22,8 @@ class Album { bool get isAllAlbum => id == "__ALL__"; /// Creates a album from platform channel protocol. - Album.fromJson(dynamic json, MediumType? mediumType, bool newest) + Album.fromJson(dynamic json, this.mediumType, this.newest) : id = json['id'], - mediumType = mediumType, - newest = newest, name = json['name'], count = json['count'] ?? 0;