VideoFull class

An extended Video class with comments, sources, refers, simulcasts, mentions, and songs fields.

Annotations
  • @freezed

Constructors

VideoFull({required String id, required String title, @JsonKey(fromJson: _parseVideoType) VideoType? type, @JsonKey(name: 'topic_id') String? topicId, @JsonKey(name: 'published_at') String? publishedAt, @JsonKey(name: 'available_at') required String availableAt, int? duration, @JsonKey(fromJson: VideoStatus.fromJson, toJson: VideoStatus.toJsonStatic) required VideoStatus status, @JsonKey(name: 'start_scheduled') String? startScheduled, @JsonKey(name: 'start_actual') String? startActual, @JsonKey(name: 'end_actual') String? endActual, @JsonKey(name: 'live_viewers') int? liveViewers, String? description, int? songcount, @JsonKey(name: 'channel_id') String? channelId, ChannelMin? channel, @JsonKey(name: 'lang') String? language, @Default([]) List<Comment> comments, @Default([]) List<Video> recommendations, @Default([]) List<Video> clips, @Default([]) List<Video> sources, @Default([]) List<Video> refers, @Default([]) List<Video> simulcasts, @Default([]) List<Channel> mentions, @Default([]) List<Song> songs, @JsonKey(name: 'same_source_clips') @Default([]) List<Video> sameSourceClips})
Returns a new VideoFull instance.
const
factory
VideoFull.fromJson(Map<String, dynamic> json)
Returns a new VideoFull instance from a JSON map.
factory

Properties

availableAt String
Takes on the first non-null value of end_actual, start_actual, start_scheduled, or published_at
no setterinherited
channel ChannelMin?
no setterinherited
channelId String?
no setterinherited
clips List<Video>
no setterinherited
comments List<Comment>
no setterinherited
copyWith → $VideoFullCopyWith<VideoFull>
no setterinherited
description String?
Included when includes contains 'description'
no setterinherited
duration int?
Duration of the video in seconds
no setterinherited
endActual String?
Included when includes contains 'live_info'
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
no setterinherited
language String?
no setterinherited
liveViewers int?
Included when includes contains 'live_info'
no setterinherited
mentions List<Channel>
no setterinherited
publishedAt String?
no setterinherited
recommendations List<Video>
no setterinherited
refers List<Video>
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sameSourceClips List<Video>
no setterinherited
simulcasts List<Video>
no setterinherited
songcount int?
Number of tagged songs for this video
no setterinherited
songs List<Song>
no setterinherited
sources List<Video>
no setterinherited
startActual String?
Included when includes contains 'live_info'
no setterinherited
startScheduled String?
Included when includes contains 'live_info'
no setterinherited
status VideoStatus
no setterinherited
title String
no setterinherited
topicId String?
corresponds to a Topic ID, Videos of type clip cannot not have topic. Streams may or may not have topic.
no setterinherited
type VideoType?
no setterinherited

Methods

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

Operators

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