diff --git a/lib/src/models/_models.g.dart b/lib/src/models/_models.g.dart index f9858ca..1a09af1 100644 --- a/lib/src/models/_models.g.dart +++ b/lib/src/models/_models.g.dart @@ -685,7 +685,7 @@ Recommendations _$RecommendationsFromJson(Map json) => ?.map((e) => RecommendationsSeed.fromJson(e as Map)) .toList() ..tracks = (json['tracks'] as List?) - ?.map((e) => TrackSimple.fromJson(e as Map)) + ?.map((e) => Track.fromJson(e as Map)) .toList(); RecommendationsSeed _$RecommendationsSeedFromJson(Map json) => @@ -782,7 +782,7 @@ EpisodeFull _$EpisodeFullFromJson(Map json) => EpisodeFull() Track _$TrackFromJson(Map json) => Track() ..album = json['album'] == null ? null - : AlbumSimple.fromJson(json['album'] as Map) + : Album.fromJson(json['album'] as Map) ..artists = (json['artists'] as List?) ?.map((e) => Artist.fromJson(e as Map)) .toList() diff --git a/lib/src/models/recommendations.dart b/lib/src/models/recommendations.dart index 044d52b..feac4fd 100644 --- a/lib/src/models/recommendations.dart +++ b/lib/src/models/recommendations.dart @@ -11,9 +11,9 @@ class Recommendations extends Object { /// A List of [RecommendationsSeed] objects. List? seeds; - /// A List of [TrackSimple] objects ordered according to the parameters + /// A List of [Track] objects ordered according to the parameters /// supplied. - List? tracks; + List? tracks; } /// Json representation of the recommendation seed diff --git a/lib/src/models/track.dart b/lib/src/models/track.dart index a45e459..4e36902 100644 --- a/lib/src/models/track.dart +++ b/lib/src/models/track.dart @@ -12,7 +12,7 @@ class Track extends Object implements TrackSimple { /// The album on which the track appears. The album object includes a link /// in [href] to full information about the album. - AlbumSimple? album; + Album? album; /// The artists who performed the track. Each artist object includes a link /// in [href] to more detailed information about the artist.