InvidiousSearchResponse class
- Implementers
- Annotations
-
- @Freezed(unionKey: 'type')
Constructors
-
InvidiousSearchResponse.channel({required String type, required String author, required String authorId, required String authorUrl, required List<InvidiousImageObject> authorThumbnails, required bool autoGenerated, required int subCount, required int videoCount, required String description, required String descriptionHtml})
-
const
factory
-
InvidiousSearchResponse.fromJson(Map<String, dynamic> json)
-
factory
-
InvidiousSearchResponse.playlist({required String type, required String title, required String playlistId, required String playlistThumbnail, required String author, required String authorId, required String authorUrl, required bool authorVerified, required int videoCount, required List<InvidiousSearchResponsePlaylistVideo> videos})
-
const
factory
-
InvidiousSearchResponse.video({required String type, required String title, required String videoId, required String author, required String authorId, required String authorUrl, required List<InvidiousThumbnailObject> videoThumbnails, required String description, required String descriptionHtml, required int viewCount, required int published, required String publishedText, required int lengthSeconds, required bool liveNow, bool? paid, required bool premium})
-
const
factory
Methods
-
map<TResult extends Object?>({required TResult video(InvidiousSearchResponseVideo value), required TResult playlist(InvidiousSearchResponsePlaylist value), required TResult channel(InvidiousSearchResponseChannel value)})
→ TResult
-
inherited
-
mapOrNull<TResult extends Object?>({TResult? video(InvidiousSearchResponseVideo value)?, TResult? playlist(InvidiousSearchResponsePlaylist value)?, TResult? channel(InvidiousSearchResponseChannel value)?})
→ TResult?
-
inherited
-
maybeMap<TResult extends Object?>({TResult video(InvidiousSearchResponseVideo value)?, TResult playlist(InvidiousSearchResponsePlaylist value)?, TResult channel(InvidiousSearchResponseChannel value)?, required TResult orElse()})
→ TResult
-
inherited
-
maybeWhen<TResult extends Object?>({TResult video(String type, String title, String videoId, String author, String authorId, String authorUrl, List<InvidiousThumbnailObject> videoThumbnails, String description, String descriptionHtml, int viewCount, int published, String publishedText, int lengthSeconds, bool liveNow, bool? paid, bool premium)?, TResult playlist(String type, String title, String playlistId, String playlistThumbnail, String author, String authorId, String authorUrl, bool authorVerified, int videoCount, List<InvidiousSearchResponsePlaylistVideo> videos)?, TResult channel(String type, String author, String authorId, String authorUrl, List<InvidiousImageObject> authorThumbnails, bool autoGenerated, int subCount, int videoCount, String description, String descriptionHtml)?, required TResult orElse()})
→ TResult
-
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson()
→ Map<String, dynamic>
-
Serializes this InvidiousSearchResponse to a JSON map.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
when<TResult extends Object?>({required TResult video(String type, String title, String videoId, String author, String authorId, String authorUrl, List<InvidiousThumbnailObject> videoThumbnails, String description, String descriptionHtml, int viewCount, int published, String publishedText, int lengthSeconds, bool liveNow, bool? paid, bool premium), required TResult playlist(String type, String title, String playlistId, String playlistThumbnail, String author, String authorId, String authorUrl, bool authorVerified, int videoCount, List<InvidiousSearchResponsePlaylistVideo> videos), required TResult channel(String type, String author, String authorId, String authorUrl, List<InvidiousImageObject> authorThumbnails, bool autoGenerated, int subCount, int videoCount, String description, String descriptionHtml)})
→ TResult
-
inherited
-
whenOrNull<TResult extends Object?>({TResult? video(String type, String title, String videoId, String author, String authorId, String authorUrl, List<InvidiousThumbnailObject> videoThumbnails, String description, String descriptionHtml, int viewCount, int published, String publishedText, int lengthSeconds, bool liveNow, bool? paid, bool premium)?, TResult? playlist(String type, String title, String playlistId, String playlistThumbnail, String author, String authorId, String authorUrl, bool authorVerified, int videoCount, List<InvidiousSearchResponsePlaylistVideo> videos)?, TResult? channel(String type, String author, String authorId, String authorUrl, List<InvidiousImageObject> authorThumbnails, bool autoGenerated, int subCount, int videoCount, String description, String descriptionHtml)?})
→ TResult?
-
inherited