TraktMetadata<T> class

Generic wrapper for metadata-heavy items (Trending, Most Played, etc.).

Constructors

TraktMetadata({required T item, int? watchers, int? watcherCount, int? playCount, int? collectedCount, int? userCount, int? listCount, DateTime? updatedAt, DateTime? deletedAt})
Creates a new TraktMetadata instance.
const
TraktMetadata.fromJson(Map<String, dynamic> json, T fromJsonT(Map<String, dynamic>), String itemKey)
Creates a TraktMetadata from a JSON map.
factory

Properties

collectedCount int?
Number of times collected.
final
deletedAt DateTime?
When the item was deleted.
final
hashCode int
The hash code for this object.
no setterinherited
item → T
The media item.
final
listCount int?
Number of lists containing this item (Anticipated).
final
playCount int?
Total play count.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updatedAt DateTime?
When the item was updated.
final
userCount int?
Number of users (Most Favorited).
final
watcherCount int?
Number of watchers (Most Played/Watched).
final
watchers int?
Number of users watching this item (Trending).
final

Methods

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

Operators

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