TraktListItem class

Represents an item within a Trakt list.

Constructors

TraktListItem({int? rank, required int id, DateTime? listedAt, String? notes, required String type, TraktMovie? movie, TraktShow? show, TraktSeason? season, TraktEpisode? episode, TraktPerson? person})
Creates a new TraktListItem instance.
const
TraktListItem.fromJson(Map<String, dynamic> json)
Creates a TraktListItem from a JSON map.
factory

Properties

episode → TraktEpisode?
Episode object (if type is episode).
final
hashCode → int
The hash code for this object.
no setterinherited
id → int
Unique ID of the list item.
final
listedAt → DateTime?
When the item was added to the list.
final
movie → TraktMovie?
Movie object (if type is movie).
final
notes → String?
Optional user notes.
final
person → TraktPerson?
Person object (if type is person).
final
rank → int?
Rank of the item in the list.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
season → TraktSeason?
Season object (if type is season).
final
show → TraktShow?
Show object (if type is show).
final
type → String
Type of the item.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this list item to a JSON map.
toString() → String
A string representation of this object.
override

Operators

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