Subscription class

A Subscription resource contains information about a YouTube user subscription. A subscription notifies a user when new videos are added to a channel or when another user takes one of several actions on YouTube, such as uploading a video, rating a video, or commenting on a video.

Annotations
  • @JsonSerializable()

Constructors

Subscription({required String kind, required String etag, required String id, Snippet? snippet, ContentDetails? contentDetails, SubscriberSnippet? subscriberSnippet})
Subscription.fromJson(Map<String, dynamic> json)
factory

Properties

contentDetails → ContentDetails?
The ContentDetails object contains basic statistics about the subscription.
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 Subscription.
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 subscription, including its title and the channel that the user subscribed to.
final
subscriberSnippet → SubscriberSnippet?
The SubscriberSnippet object contains basic details about the subscriber.
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