SearchResult class

a collection of search results that match the query parameters specified in the API request. By default, a search result set identifies matching video, channel, and playlist resources, but you can also configure queries to only retrieve a specific type of resource.

Annotations
  • @JsonSerializable()

Constructors

SearchResult({required String kind, required String etag, required Id id, Snippet? snippet})
SearchResult.fromJson(Map<String, dynamic> json)
factory

Properties

etag String
The Etag of this resource.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
id → Id
The id object contains information that can be used to uniquely identify the resource that matches the search request.
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 a search result, such as its title or description. For example, if the search result is a video, then the title will be the video's title and the description will be the video's description.
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