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 ' channel_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 _ $ChannelVideoTearOff {
const _ $ChannelVideoTearOff ( ) ;
_ChannelVideo call ( VideoId videoId , String videoTitle , Duration videoDuration ,
String videoThumbnail , String videoUploadDate , int videoViews ) {
return _ChannelVideo (
videoId ,
videoTitle ,
videoDuration ,
videoThumbnail ,
videoUploadDate ,
videoViews ,
) ;
}
}
/// @nodoc
const $ChannelVideo = _ $ChannelVideoTearOff ( ) ;
/// @nodoc
mixin _ $ChannelVideo {
/// Video ID.
VideoId get videoId = > throw _privateConstructorUsedError ;
/// Video title.
String get videoTitle = > throw _privateConstructorUsedError ;
/// Video duration
Duration get videoDuration = > throw _privateConstructorUsedError ;
/// Video thumbnail
String get videoThumbnail = > throw _privateConstructorUsedError ;
/// Video upload date.
/// Formatted like 10 hours ago
String get videoUploadDate = > throw _privateConstructorUsedError ;
/// Video view count.
int get videoViews = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$ChannelVideoCopyWith < ChannelVideo > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $ChannelVideoCopyWith < $Res > {
factory $ChannelVideoCopyWith (
ChannelVideo value , $Res Function ( ChannelVideo ) then ) =
_ $ChannelVideoCopyWithImpl < $Res > ;
$Res call (
{ VideoId videoId ,
String videoTitle ,
Duration videoDuration ,
String videoThumbnail ,
String videoUploadDate ,
int videoViews } ) ;
$VideoIdCopyWith < $Res > get videoId ;
}
/// @nodoc
class _ $ChannelVideoCopyWithImpl < $Res > implements $ChannelVideoCopyWith < $Res > {
_ $ChannelVideoCopyWithImpl ( this . _value , this . _then ) ;
final ChannelVideo _value ;
// ignore: unused_field
final $Res Function ( ChannelVideo ) _then ;
@ override
$Res call ( {
Object ? videoId = freezed ,
Object ? videoTitle = freezed ,
Object ? videoDuration = freezed ,
Object ? videoThumbnail = freezed ,
Object ? videoUploadDate = freezed ,
Object ? videoViews = freezed ,
} ) {
return _then ( _value . copyWith (
videoId: videoId = = freezed
? _value . videoId
: videoId // ignore: cast_nullable_to_non_nullable
as VideoId ,
videoTitle: videoTitle = = freezed
? _value . videoTitle
: videoTitle // ignore: cast_nullable_to_non_nullable
as String ,
videoDuration: videoDuration = = freezed
? _value . videoDuration
: videoDuration // ignore: cast_nullable_to_non_nullable
as Duration ,
videoThumbnail: videoThumbnail = = freezed
? _value . videoThumbnail
: videoThumbnail // ignore: cast_nullable_to_non_nullable
as String ,
videoUploadDate: videoUploadDate = = freezed
? _value . videoUploadDate
: videoUploadDate // ignore: cast_nullable_to_non_nullable
as String ,
videoViews: videoViews = = freezed
? _value . videoViews
: videoViews // ignore: cast_nullable_to_non_nullable
as int ,
) ) ;
}
@ override
$VideoIdCopyWith < $Res > get videoId {
return $VideoIdCopyWith < $Res > ( _value . videoId , ( value ) {
return _then ( _value . copyWith ( videoId: value ) ) ;
} ) ;
}
}
/// @nodoc
abstract class _ $ChannelVideoCopyWith < $Res >
implements $ChannelVideoCopyWith < $Res > {
factory _ $ChannelVideoCopyWith (
_ChannelVideo value , $Res Function ( _ChannelVideo ) then ) =
__ $ChannelVideoCopyWithImpl < $Res > ;
@ override
$Res call (
{ VideoId videoId ,
String videoTitle ,
Duration videoDuration ,
String videoThumbnail ,
String videoUploadDate ,
int videoViews } ) ;
@ override
$VideoIdCopyWith < $Res > get videoId ;
}
/// @nodoc
class __ $ChannelVideoCopyWithImpl < $Res > extends _ $ChannelVideoCopyWithImpl < $Res >
implements _ $ChannelVideoCopyWith < $Res > {
__ $ChannelVideoCopyWithImpl (
_ChannelVideo _value , $Res Function ( _ChannelVideo ) _then )
: super ( _value , ( v ) = > _then ( v as _ChannelVideo ) ) ;
@ override
_ChannelVideo get _value = > super . _value as _ChannelVideo ;
@ override
$Res call ( {
Object ? videoId = freezed ,
Object ? videoTitle = freezed ,
Object ? videoDuration = freezed ,
Object ? videoThumbnail = freezed ,
Object ? videoUploadDate = freezed ,
Object ? videoViews = freezed ,
} ) {
return _then ( _ChannelVideo (
videoId = = freezed
? _value . videoId
: videoId // ignore: cast_nullable_to_non_nullable
as VideoId ,
videoTitle = = freezed
? _value . videoTitle
: videoTitle // ignore: cast_nullable_to_non_nullable
as String ,
videoDuration = = freezed
? _value . videoDuration
: videoDuration // ignore: cast_nullable_to_non_nullable
as Duration ,
videoThumbnail = = freezed
? _value . videoThumbnail
: videoThumbnail // ignore: cast_nullable_to_non_nullable
as String ,
videoUploadDate = = freezed
? _value . videoUploadDate
: videoUploadDate // ignore: cast_nullable_to_non_nullable
as String ,
videoViews = = freezed
? _value . videoViews
: videoViews // ignore: cast_nullable_to_non_nullable
as int ,
) ) ;
}
}
/// @nodoc
class _ $_ChannelVideo implements _ChannelVideo {
const _ $_ChannelVideo ( this . videoId , this . videoTitle , this . videoDuration ,
this . videoThumbnail , this . videoUploadDate , this . videoViews ) ;
@ override
/// Video ID.
final VideoId videoId ;
@ override
/// Video title.
final String videoTitle ;
@ override
/// Video duration
final Duration videoDuration ;
@ override
/// Video thumbnail
final String videoThumbnail ;
@ override
/// Video upload date.
/// Formatted like 10 hours ago
final String videoUploadDate ;
@ override
/// Video view count.
final int videoViews ;
@ override
String toString ( ) {
return ' ChannelVideo(videoId: $ videoId , videoTitle: $ videoTitle , videoDuration: $ videoDuration , videoThumbnail: $ videoThumbnail , videoUploadDate: $ videoUploadDate , videoViews: $ videoViews ) ' ;
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
2021-11-12 21:04:53 +01:00
( other . runtimeType = = runtimeType & &
other is _ChannelVideo & &
( identical ( other . videoId , videoId ) | | other . videoId = = videoId ) & &
2021-07-19 00:47:22 +02:00
( identical ( other . videoTitle , videoTitle ) | |
2021-11-12 21:04:53 +01:00
other . videoTitle = = videoTitle ) & &
2021-07-19 00:47:22 +02:00
( identical ( other . videoDuration , videoDuration ) | |
2021-11-12 21:04:53 +01:00
other . videoDuration = = videoDuration ) & &
2021-07-19 00:47:22 +02:00
( identical ( other . videoThumbnail , videoThumbnail ) | |
2021-11-12 21:04:53 +01:00
other . videoThumbnail = = videoThumbnail ) & &
2021-07-19 00:47:22 +02:00
( identical ( other . videoUploadDate , videoUploadDate ) | |
2021-11-12 21:04:53 +01:00
other . videoUploadDate = = videoUploadDate ) & &
2021-07-19 00:47:22 +02:00
( identical ( other . videoViews , videoViews ) | |
2021-11-12 21:04:53 +01:00
other . videoViews = = videoViews ) ) ;
2021-07-19 00:47:22 +02:00
}
@ override
2021-11-12 21:04:53 +01:00
int get hashCode = > Object . hash ( runtimeType , videoId , videoTitle ,
videoDuration , videoThumbnail , videoUploadDate , videoViews ) ;
2021-07-19 00:47:22 +02:00
@ JsonKey ( ignore: true )
@ override
_ $ChannelVideoCopyWith < _ChannelVideo > get copyWith = >
__ $ChannelVideoCopyWithImpl < _ChannelVideo > ( this , _ $identity ) ;
}
abstract class _ChannelVideo implements ChannelVideo {
const factory _ChannelVideo (
VideoId videoId ,
String videoTitle ,
Duration videoDuration ,
String videoThumbnail ,
String videoUploadDate ,
int videoViews ) = _ $_ChannelVideo ;
@ override
/// Video ID.
2021-11-12 21:04:53 +01:00
VideoId get videoId ;
2021-07-19 00:47:22 +02:00
@ override
/// Video title.
2021-11-12 21:04:53 +01:00
String get videoTitle ;
2021-07-19 00:47:22 +02:00
@ override
/// Video duration
2021-11-12 21:04:53 +01:00
Duration get videoDuration ;
2021-07-19 00:47:22 +02:00
@ override
/// Video thumbnail
2021-11-12 21:04:53 +01:00
String get videoThumbnail ;
2021-07-19 00:47:22 +02:00
@ override
/// Video upload date.
/// Formatted like 10 hours ago
2021-11-12 21:04:53 +01:00
String get videoUploadDate ;
2021-07-19 00:47:22 +02:00
@ override
/// Video view count.
2021-11-12 21:04:53 +01:00
int get videoViews ;
2021-07-19 00:47:22 +02:00
@ override
@ JsonKey ( ignore: true )
_ $ChannelVideoCopyWith < _ChannelVideo > get copyWith = >
throw _privateConstructorUsedError ;
}