Item class

A class that represents an individual Podcast within the search results. Not all properties may contain values for all search providers.

Constructors

Item({int? artistId, int? collectionId, int? trackId, String? guid, String? artistName, String? collectionName, String? trackName, int? trackCount, String? collectionCensoredName, String? trackCensoredName, String? artistViewUrl, String? collectionViewUrl, String? feedUrl, String? trackViewUrl, String? collectionExplicitness, String? trackExplicitness, String? artworkUrl30, String? artworkUrl60, String? artworkUrl100, String? artworkUrl600, String? artworkUrl, DateTime? releaseDate, String? country, String? primaryGenreName, String? contentAdvisoryRating, List<Genre>? genre})
Item.fromJson({required Map<String, dynamic>? json, ResultType type = ResultType.itunes})
Takes our json map and builds a Podcast instance from it.
factory

Properties

artistId int?
The iTunes ID of the artist.
final
artistName String?
The name of the artist.
final
artistViewUrl String?
The URL of the iTunes page for the artist.
final
artworkUrl String?
Original artwork at intended resolution.
final
artworkUrl30 String?
Podcast artwork URL 30x30.
final
artworkUrl60 String?
Podcast artwork URL 60x60.
final
artworkUrl100 String?
Podcast artwork URL 100x100.
final
artworkUrl600 String?
Podcast artwork URL 600x600.
final
bestArtworkUrl String?
Contains a URL for the highest resolution artwork available. If no artwork is available this will return an empty String.
no setter
collectionCensoredName String?
The censored version of the collection name.
final
collectionExplicitness String?
Explicitness of the collection. For example notExplicit.
final
collectionId int?
The iTunes ID of the collection.
final
collectionName String?
The name of the iTunes collection the Podcast is part of.
final
collectionViewUrl String?
The URL of the iTunes page for the podcast.
final
contentAdvisoryRating String?
final
country String?
Country of origin.
final
feedUrl String?
The URL of the RSS feed for the podcast.
final
genre List<Genre>?
Full list of genres for the podcast.
final
guid String?
The item unique identifier.
final
hashCode int
The hash code for this object.
no setterinherited
primaryGenreName String?
Primary genre for the podcast.
final
releaseDate DateTime?
Podcast release date
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thumbnailArtworkUrl String?
Contains a URL for the thumbnail resolution artwork. If no thumbnail size artwork is available this could return a URL for the full size image. If no artwork is available this will return an empty String.
no setter
trackCensoredName String?
The censored version of the track name,
final
trackCount int?
Number of tracks in the results.
final
trackExplicitness String?
Explicitness of the track. For example notExplicit.
final
trackId int?
The iTunes ID of the track.
final
trackName String?
The track name.
final
trackViewUrl String?
The URL of the iTunes page for the track.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited