Subscription class Null safety

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

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.
final
hashCode int
The hash code for this object.
read-only, inherited
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#Subscription.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
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 non-existent 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