Skip to content

Commit

Permalink
includes popularity attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
hayribakici authored and rinukkusu committed Feb 7, 2024
1 parent 2fad96c commit 060d221
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/src/models/_models.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/src/models/album.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class Album extends AlbumSimple {
/// The popularity of the artist. The value will be between 0 and 100, with 100
/// being the most popular. The artist's popularity is calculated from the
/// popularity of all the artist's tracks.
@JsonKey(fromJson: convertToIntIfDoubleValue)
int? popularity;
}

Expand Down
1 change: 1 addition & 0 deletions lib/src/models/artist.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class Artist extends Object implements ArtistSimple {
/// The popularity of the artist. The value will be between 0 and 100, with 100
/// being the most popular. The artist's popularity is calculated from the
/// popularity of all the artist's tracks.
@JsonKey(fromJson: convertToIntIfDoubleValue)
int? popularity;
}

Expand Down
1 change: 1 addition & 0 deletions lib/src/models/track.dart
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class Track extends Object implements TrackSimple {
/// independently. Artist and album popularity is derived mathematically from
/// track popularity. Note that the popularity value may lag actual popularity
/// by a few days: the value is not updated in real time.
@JsonKey(fromJson: convertToIntIfDoubleValue)
int? popularity;

/// A URL to a 30 second preview (MP3 format) of the track. `null` if not
Expand Down

0 comments on commit 060d221

Please sign in to comment.