PlaylistItem class

A playlistItem resource identifies another resource, such as a video, that is included in a playlist. In addition, the playlistItem resource contains details about the included resource that pertain specifically to how that resource is used in that playlist.

YouTube also uses a playlist to identify a channel's list of uploaded videos, with each playlistItem in that list representing one uploaded video.

Annotations
  • @JsonSerializable()

Constructors

PlaylistItem({required String kind, required String etag, required String id, Snippet? snippet, Status? status, ContentDetails? contentDetails})
PlaylistItem.fromJson(Map<String, dynamic> json)
factory

Properties

contentDetails → ContentDetails?
The ContentDetails object is included in the resource if the included item is a YouTube video. The object contains additional information about the video.
final
etag String
The Etag of this resource.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
id String
The ID that YouTube uses to uniquely identify the playlist.
final
kind String
Identifies the API resource's type. The value will be youtube#searchListResponse.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snippet → Snippet?
The Snippet object contains basic details about the playlist item, such as its title and position in the playlist.
final
status → Status?
The Status object contains information about the playlist item's privacy status.
final

Methods

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

Operators

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