2021-08-31 18:06:34 +02:00
// coverage:ignore-file
2021-07-19 00:47:22 +02:00
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target
part of ' video.dart ' ;
// **************************************************************************
// FreezedGenerator
// **************************************************************************
T _ $identity < T > ( T value ) = > value ;
final _privateConstructorUsedError = UnsupportedError (
' It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it. \n Please check the documentation here for more informations: https://github.com/rrousselGit/freezed#custom-getters-and-methods ' ) ;
/// @nodoc
class _ $VideoTearOff {
const _ $VideoTearOff ( ) ;
_Video _internal (
VideoId id ,
String title ,
String author ,
ChannelId channelId ,
DateTime ? uploadDate ,
DateTime ? publishDate ,
String description ,
Duration ? duration ,
ThumbnailSet thumbnails ,
UnmodifiableListView < String > keywords ,
Engagement engagement ,
bool isLive ,
[ @ internal WatchPage ? watchPage ] ) {
return _Video (
id ,
title ,
author ,
channelId ,
uploadDate ,
publishDate ,
description ,
duration ,
thumbnails ,
keywords ,
engagement ,
isLive ,
watchPage ,
) ;
}
}
/// @nodoc
const $Video = _ $VideoTearOff ( ) ;
/// @nodoc
mixin _ $Video {
/// Video ID.
VideoId get id = > throw _privateConstructorUsedError ;
/// Video title.
String get title = > throw _privateConstructorUsedError ;
/// Video author.
String get author = > throw _privateConstructorUsedError ;
/// Video author Id.
ChannelId get channelId = > throw _privateConstructorUsedError ;
/// Video upload date.
/// Note: For search queries it is calculated with:
/// DateTime.now() - how much time is was published.
DateTime ? get uploadDate = > throw _privateConstructorUsedError ;
/// Video publish date.
DateTime ? get publishDate = > throw _privateConstructorUsedError ;
/// Video description.
String get description = > throw _privateConstructorUsedError ;
/// Duration of the video.
Duration ? get duration = > throw _privateConstructorUsedError ;
/// Available thumbnails for this video.
ThumbnailSet get thumbnails = > throw _privateConstructorUsedError ;
/// Search keywords used for this video.
UnmodifiableListView < String > get keywords = >
throw _privateConstructorUsedError ;
/// Engagement statistics for this video.
Engagement get engagement = > throw _privateConstructorUsedError ;
/// Returns true if this is a live stream.
//ignore: avoid_positional_boolean_parameters
bool get isLive = > throw _privateConstructorUsedError ;
/// Used internally.
/// Shouldn't be used in the code.
@ internal
WatchPage ? get watchPage = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$VideoCopyWith < Video > get copyWith = > throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $VideoCopyWith < $Res > {
factory $VideoCopyWith ( Video value , $Res Function ( Video ) then ) =
_ $VideoCopyWithImpl < $Res > ;
$Res call (
{ VideoId id ,
String title ,
String author ,
ChannelId channelId ,
DateTime ? uploadDate ,
DateTime ? publishDate ,
String description ,
Duration ? duration ,
ThumbnailSet thumbnails ,
UnmodifiableListView < String > keywords ,
Engagement engagement ,
bool isLive ,
@ internal WatchPage ? watchPage } ) ;
$VideoIdCopyWith < $Res > get id ;
$ChannelIdCopyWith < $Res > get channelId ;
$ThumbnailSetCopyWith < $Res > get thumbnails ;
$EngagementCopyWith < $Res > get engagement ;
}
/// @nodoc
class _ $VideoCopyWithImpl < $Res > implements $VideoCopyWith < $Res > {
_ $VideoCopyWithImpl ( this . _value , this . _then ) ;
final Video _value ;
// ignore: unused_field
final $Res Function ( Video ) _then ;
@ override
$Res call ( {
Object ? id = freezed ,
Object ? title = freezed ,
Object ? author = freezed ,
Object ? channelId = freezed ,
Object ? uploadDate = freezed ,
Object ? publishDate = freezed ,
Object ? description = freezed ,
Object ? duration = freezed ,
Object ? thumbnails = freezed ,
Object ? keywords = freezed ,
Object ? engagement = freezed ,
Object ? isLive = freezed ,
Object ? watchPage = freezed ,
} ) {
return _then ( _value . copyWith (
id: id = = freezed
? _value . id
: id // ignore: cast_nullable_to_non_nullable
as VideoId ,
title: title = = freezed
? _value . title
: title // ignore: cast_nullable_to_non_nullable
as String ,
author: author = = freezed
? _value . author
: author // ignore: cast_nullable_to_non_nullable
as String ,
channelId: channelId = = freezed
? _value . channelId
: channelId // ignore: cast_nullable_to_non_nullable
as ChannelId ,
uploadDate: uploadDate = = freezed
? _value . uploadDate
: uploadDate // ignore: cast_nullable_to_non_nullable
as DateTime ? ,
publishDate: publishDate = = freezed
? _value . publishDate
: publishDate // ignore: cast_nullable_to_non_nullable
as DateTime ? ,
description: description = = freezed
? _value . description
: description // ignore: cast_nullable_to_non_nullable
as String ,
duration: duration = = freezed
? _value . duration
: duration // ignore: cast_nullable_to_non_nullable
as Duration ? ,
thumbnails: thumbnails = = freezed
? _value . thumbnails
: thumbnails // ignore: cast_nullable_to_non_nullable
as ThumbnailSet ,
keywords: keywords = = freezed
? _value . keywords
: keywords // ignore: cast_nullable_to_non_nullable
as UnmodifiableListView < String > ,
engagement: engagement = = freezed
? _value . engagement
: engagement // ignore: cast_nullable_to_non_nullable
as Engagement ,
isLive: isLive = = freezed
? _value . isLive
: isLive // ignore: cast_nullable_to_non_nullable
as bool ,
watchPage: watchPage = = freezed
? _value . watchPage
: watchPage // ignore: cast_nullable_to_non_nullable
as WatchPage ? ,
) ) ;
}
@ override
$VideoIdCopyWith < $Res > get id {
return $VideoIdCopyWith < $Res > ( _value . id , ( value ) {
return _then ( _value . copyWith ( id: value ) ) ;
} ) ;
}
@ override
$ChannelIdCopyWith < $Res > get channelId {
return $ChannelIdCopyWith < $Res > ( _value . channelId , ( value ) {
return _then ( _value . copyWith ( channelId: value ) ) ;
} ) ;
}
@ override
$ThumbnailSetCopyWith < $Res > get thumbnails {
return $ThumbnailSetCopyWith < $Res > ( _value . thumbnails , ( value ) {
return _then ( _value . copyWith ( thumbnails: value ) ) ;
} ) ;
}
@ override
$EngagementCopyWith < $Res > get engagement {
return $EngagementCopyWith < $Res > ( _value . engagement , ( value ) {
return _then ( _value . copyWith ( engagement: value ) ) ;
} ) ;
}
}
/// @nodoc
abstract class _ $VideoCopyWith < $Res > implements $VideoCopyWith < $Res > {
factory _ $VideoCopyWith ( _Video value , $Res Function ( _Video ) then ) =
__ $VideoCopyWithImpl < $Res > ;
@ override
$Res call (
{ VideoId id ,
String title ,
String author ,
ChannelId channelId ,
DateTime ? uploadDate ,
DateTime ? publishDate ,
String description ,
Duration ? duration ,
ThumbnailSet thumbnails ,
UnmodifiableListView < String > keywords ,
Engagement engagement ,
bool isLive ,
@ internal WatchPage ? watchPage } ) ;
@ override
$VideoIdCopyWith < $Res > get id ;
@ override
$ChannelIdCopyWith < $Res > get channelId ;
@ override
$ThumbnailSetCopyWith < $Res > get thumbnails ;
@ override
$EngagementCopyWith < $Res > get engagement ;
}
/// @nodoc
class __ $VideoCopyWithImpl < $Res > extends _ $VideoCopyWithImpl < $Res >
implements _ $VideoCopyWith < $Res > {
__ $VideoCopyWithImpl ( _Video _value , $Res Function ( _Video ) _then )
: super ( _value , ( v ) = > _then ( v as _Video ) ) ;
@ override
_Video get _value = > super . _value as _Video ;
@ override
$Res call ( {
Object ? id = freezed ,
Object ? title = freezed ,
Object ? author = freezed ,
Object ? channelId = freezed ,
Object ? uploadDate = freezed ,
Object ? publishDate = freezed ,
Object ? description = freezed ,
Object ? duration = freezed ,
Object ? thumbnails = freezed ,
Object ? keywords = freezed ,
Object ? engagement = freezed ,
Object ? isLive = freezed ,
Object ? watchPage = freezed ,
} ) {
return _then ( _Video (
id = = freezed
? _value . id
: id // ignore: cast_nullable_to_non_nullable
as VideoId ,
title = = freezed
? _value . title
: title // ignore: cast_nullable_to_non_nullable
as String ,
author = = freezed
? _value . author
: author // ignore: cast_nullable_to_non_nullable
as String ,
channelId = = freezed
? _value . channelId
: channelId // ignore: cast_nullable_to_non_nullable
as ChannelId ,
uploadDate = = freezed
? _value . uploadDate
: uploadDate // ignore: cast_nullable_to_non_nullable
as DateTime ? ,
publishDate = = freezed
? _value . publishDate
: publishDate // ignore: cast_nullable_to_non_nullable
as DateTime ? ,
description = = freezed
? _value . description
: description // ignore: cast_nullable_to_non_nullable
as String ,
duration = = freezed
? _value . duration
: duration // ignore: cast_nullable_to_non_nullable
as Duration ? ,
thumbnails = = freezed
? _value . thumbnails
: thumbnails // ignore: cast_nullable_to_non_nullable
as ThumbnailSet ,
keywords = = freezed
? _value . keywords
: keywords // ignore: cast_nullable_to_non_nullable
as UnmodifiableListView < String > ,
engagement = = freezed
? _value . engagement
: engagement // ignore: cast_nullable_to_non_nullable
as Engagement ,
isLive = = freezed
? _value . isLive
: isLive // ignore: cast_nullable_to_non_nullable
as bool ,
watchPage = = freezed
? _value . watchPage
: watchPage // ignore: cast_nullable_to_non_nullable
as WatchPage ? ,
) ) ;
}
}
/// @nodoc
class _ $_Video extends _Video {
const _ $_Video (
this . id ,
this . title ,
this . author ,
this . channelId ,
this . uploadDate ,
this . publishDate ,
this . description ,
this . duration ,
this . thumbnails ,
this . keywords ,
this . engagement ,
this . isLive ,
[ @ internal this . watchPage ] )
: super . _ ( ) ;
@ override
/// Video ID.
final VideoId id ;
@ override
/// Video title.
final String title ;
@ override
/// Video author.
final String author ;
@ override
/// Video author Id.
final ChannelId channelId ;
@ override
/// Video upload date.
/// Note: For search queries it is calculated with:
/// DateTime.now() - how much time is was published.
final DateTime ? uploadDate ;
@ override
/// Video publish date.
final DateTime ? publishDate ;
@ override
/// Video description.
final String description ;
@ override
/// Duration of the video.
final Duration ? duration ;
@ override
/// Available thumbnails for this video.
final ThumbnailSet thumbnails ;
@ override
/// Search keywords used for this video.
final UnmodifiableListView < String > keywords ;
@ override
/// Engagement statistics for this video.
final Engagement engagement ;
@ override
/// Returns true if this is a live stream.
//ignore: avoid_positional_boolean_parameters
final bool isLive ;
@ override
/// Used internally.
/// Shouldn't be used in the code.
@ internal
final WatchPage ? watchPage ;
@ override
String toString ( ) {
return ' Video._internal(id: $ id , title: $ title , author: $ author , channelId: $ channelId , uploadDate: $ uploadDate , publishDate: $ publishDate , description: $ description , duration: $ duration , thumbnails: $ thumbnails , keywords: $ keywords , engagement: $ engagement , isLive: $ isLive , watchPage: $ watchPage ) ' ;
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
2021-11-12 21:04:53 +01:00
( other . runtimeType = = runtimeType & &
other is _Video & &
( identical ( other . id , id ) | | other . id = = id ) & &
( identical ( other . title , title ) | | other . title = = title ) & &
( identical ( other . author , author ) | | other . author = = author ) & &
2021-07-19 00:47:22 +02:00
( identical ( other . channelId , channelId ) | |
2021-11-12 21:04:53 +01:00
other . channelId = = channelId ) & &
2021-07-19 00:47:22 +02:00
( identical ( other . uploadDate , uploadDate ) | |
2021-11-12 21:04:53 +01:00
other . uploadDate = = uploadDate ) & &
2021-07-19 00:47:22 +02:00
( identical ( other . publishDate , publishDate ) | |
2021-11-12 21:04:53 +01:00
other . publishDate = = publishDate ) & &
2021-07-19 00:47:22 +02:00
( identical ( other . description , description ) | |
2021-11-12 21:04:53 +01:00
other . description = = description ) & &
2021-07-19 00:47:22 +02:00
( identical ( other . duration , duration ) | |
2021-11-12 21:04:53 +01:00
other . duration = = duration ) & &
2021-07-19 00:47:22 +02:00
( identical ( other . thumbnails , thumbnails ) | |
2021-11-12 21:04:53 +01:00
other . thumbnails = = thumbnails ) & &
2021-07-19 00:47:22 +02:00
( identical ( other . keywords , keywords ) | |
2021-11-12 21:04:53 +01:00
other . keywords = = keywords ) & &
2021-07-19 00:47:22 +02:00
( identical ( other . engagement , engagement ) | |
2021-11-12 21:04:53 +01:00
other . engagement = = engagement ) & &
( identical ( other . isLive , isLive ) | | other . isLive = = isLive ) & &
2021-07-19 00:47:22 +02:00
( identical ( other . watchPage , watchPage ) | |
2021-11-12 21:04:53 +01:00
other . watchPage = = watchPage ) ) ;
2021-07-19 00:47:22 +02:00
}
@ override
2021-11-12 21:04:53 +01:00
int get hashCode = > Object . hash (
runtimeType ,
id ,
title ,
author ,
channelId ,
uploadDate ,
publishDate ,
description ,
duration ,
thumbnails ,
keywords ,
engagement ,
isLive ,
watchPage ) ;
2021-07-19 00:47:22 +02:00
@ JsonKey ( ignore: true )
@ override
_ $VideoCopyWith < _Video > get copyWith = >
__ $VideoCopyWithImpl < _Video > ( this , _ $identity ) ;
}
abstract class _Video extends Video {
const factory _Video (
VideoId id ,
String title ,
String author ,
ChannelId channelId ,
DateTime ? uploadDate ,
DateTime ? publishDate ,
String description ,
Duration ? duration ,
ThumbnailSet thumbnails ,
UnmodifiableListView < String > keywords ,
Engagement engagement ,
bool isLive ,
[ @ internal WatchPage ? watchPage ] ) = _ $_Video ;
const _Video . _ ( ) : super . _ ( ) ;
@ override
/// Video ID.
2021-11-12 21:04:53 +01:00
VideoId get id ;
2021-07-19 00:47:22 +02:00
@ override
/// Video title.
2021-11-12 21:04:53 +01:00
String get title ;
2021-07-19 00:47:22 +02:00
@ override
/// Video author.
2021-11-12 21:04:53 +01:00
String get author ;
2021-07-19 00:47:22 +02:00
@ override
/// Video author Id.
2021-11-12 21:04:53 +01:00
ChannelId get channelId ;
2021-07-19 00:47:22 +02:00
@ override
/// Video upload date.
/// Note: For search queries it is calculated with:
/// DateTime.now() - how much time is was published.
2021-11-12 21:04:53 +01:00
DateTime ? get uploadDate ;
2021-07-19 00:47:22 +02:00
@ override
/// Video publish date.
2021-11-12 21:04:53 +01:00
DateTime ? get publishDate ;
2021-07-19 00:47:22 +02:00
@ override
/// Video description.
2021-11-12 21:04:53 +01:00
String get description ;
2021-07-19 00:47:22 +02:00
@ override
/// Duration of the video.
2021-11-12 21:04:53 +01:00
Duration ? get duration ;
2021-07-19 00:47:22 +02:00
@ override
/// Available thumbnails for this video.
2021-11-12 21:04:53 +01:00
ThumbnailSet get thumbnails ;
2021-07-19 00:47:22 +02:00
@ override
/// Search keywords used for this video.
2021-11-12 21:04:53 +01:00
UnmodifiableListView < String > get keywords ;
2021-07-19 00:47:22 +02:00
@ override
/// Engagement statistics for this video.
2021-11-12 21:04:53 +01:00
Engagement get engagement ;
2021-07-19 00:47:22 +02:00
@ override
/// Returns true if this is a live stream.
//ignore: avoid_positional_boolean_parameters
2021-11-12 21:04:53 +01:00
bool get isLive ;
2021-07-19 00:47:22 +02:00
@ override
/// Used internally.
/// Shouldn't be used in the code.
@ internal
2021-11-12 21:04:53 +01:00
WatchPage ? get watchPage ;
2021-07-19 00:47:22 +02:00
@ override
@ JsonKey ( ignore: true )
_ $VideoCopyWith < _Video > get copyWith = > throw _privateConstructorUsedError ;
}