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
2022-02-01 00:55:55 +01:00
// ignore_for_file: type=lint
2021-07-19 00:47:22 +02:00
// 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 ' search_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 _ $SearchVideoTearOff {
const _ $SearchVideoTearOff ( ) ;
_SearchVideo call (
VideoId id ,
String title ,
String author ,
String description ,
String duration ,
int viewCount ,
List < Thumbnail > thumbnails ,
String ? uploadDate ,
bool isLive ,
String channelId ) {
return _SearchVideo (
id ,
title ,
author ,
description ,
duration ,
viewCount ,
thumbnails ,
uploadDate ,
isLive ,
channelId ,
) ;
}
}
/// @nodoc
const $SearchVideo = _ $SearchVideoTearOff ( ) ;
/// @nodoc
mixin _ $SearchVideo {
/// Video ID.
VideoId get id = > throw _privateConstructorUsedError ;
/// Video title.
String get title = > throw _privateConstructorUsedError ;
/// Video author.
String get author = > throw _privateConstructorUsedError ;
/// Video description snippet. (Part of the full description if too long)
String get description = > throw _privateConstructorUsedError ;
/// Video duration as String, HH:MM:SS
String get duration = > throw _privateConstructorUsedError ;
/// Video View Count
int get viewCount = > throw _privateConstructorUsedError ;
/// Video thumbnail
List < Thumbnail > get thumbnails = > throw _privateConstructorUsedError ;
/// Video upload date - As string: 5 years ago.
String ? get uploadDate = > throw _privateConstructorUsedError ;
/// True if this video is a live stream.
2021-07-23 12:54:29 +02:00
// ignore: avoid_positional_boolean_parameters
2021-07-19 00:47:22 +02:00
bool get isLive = > throw _privateConstructorUsedError ;
/// Channel id
String get channelId = > throw _privateConstructorUsedError ;
@ JsonKey ( ignore: true )
$SearchVideoCopyWith < SearchVideo > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $SearchVideoCopyWith < $Res > {
factory $SearchVideoCopyWith (
SearchVideo value , $Res Function ( SearchVideo ) then ) =
_ $SearchVideoCopyWithImpl < $Res > ;
$Res call (
{ VideoId id ,
String title ,
String author ,
String description ,
String duration ,
int viewCount ,
List < Thumbnail > thumbnails ,
String ? uploadDate ,
bool isLive ,
String channelId } ) ;
$VideoIdCopyWith < $Res > get id ;
}
/// @nodoc
class _ $SearchVideoCopyWithImpl < $Res > implements $SearchVideoCopyWith < $Res > {
_ $SearchVideoCopyWithImpl ( this . _value , this . _then ) ;
final SearchVideo _value ;
// ignore: unused_field
final $Res Function ( SearchVideo ) _then ;
@ override
$Res call ( {
Object ? id = freezed ,
Object ? title = freezed ,
Object ? author = freezed ,
Object ? description = freezed ,
Object ? duration = freezed ,
Object ? viewCount = freezed ,
Object ? thumbnails = freezed ,
Object ? uploadDate = freezed ,
Object ? isLive = freezed ,
Object ? channelId = 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 ,
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 String ,
viewCount: viewCount = = freezed
? _value . viewCount
: viewCount // ignore: cast_nullable_to_non_nullable
as int ,
thumbnails: thumbnails = = freezed
? _value . thumbnails
: thumbnails // ignore: cast_nullable_to_non_nullable
as List < Thumbnail > ,
uploadDate: uploadDate = = freezed
? _value . uploadDate
: uploadDate // ignore: cast_nullable_to_non_nullable
as String ? ,
isLive: isLive = = freezed
? _value . isLive
: isLive // ignore: cast_nullable_to_non_nullable
as bool ,
channelId: channelId = = freezed
? _value . channelId
: channelId // ignore: cast_nullable_to_non_nullable
as String ,
) ) ;
}
@ override
$VideoIdCopyWith < $Res > get id {
return $VideoIdCopyWith < $Res > ( _value . id , ( value ) {
return _then ( _value . copyWith ( id: value ) ) ;
} ) ;
}
}
/// @nodoc
abstract class _ $SearchVideoCopyWith < $Res >
implements $SearchVideoCopyWith < $Res > {
factory _ $SearchVideoCopyWith (
_SearchVideo value , $Res Function ( _SearchVideo ) then ) =
__ $SearchVideoCopyWithImpl < $Res > ;
@ override
$Res call (
{ VideoId id ,
String title ,
String author ,
String description ,
String duration ,
int viewCount ,
List < Thumbnail > thumbnails ,
String ? uploadDate ,
bool isLive ,
String channelId } ) ;
@ override
$VideoIdCopyWith < $Res > get id ;
}
/// @nodoc
class __ $SearchVideoCopyWithImpl < $Res > extends _ $SearchVideoCopyWithImpl < $Res >
implements _ $SearchVideoCopyWith < $Res > {
__ $SearchVideoCopyWithImpl (
_SearchVideo _value , $Res Function ( _SearchVideo ) _then )
: super ( _value , ( v ) = > _then ( v as _SearchVideo ) ) ;
@ override
_SearchVideo get _value = > super . _value as _SearchVideo ;
@ override
$Res call ( {
Object ? id = freezed ,
Object ? title = freezed ,
Object ? author = freezed ,
Object ? description = freezed ,
Object ? duration = freezed ,
Object ? viewCount = freezed ,
Object ? thumbnails = freezed ,
Object ? uploadDate = freezed ,
Object ? isLive = freezed ,
Object ? channelId = freezed ,
} ) {
return _then ( _SearchVideo (
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 ,
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 String ,
viewCount = = freezed
? _value . viewCount
: viewCount // ignore: cast_nullable_to_non_nullable
as int ,
thumbnails = = freezed
? _value . thumbnails
: thumbnails // ignore: cast_nullable_to_non_nullable
as List < Thumbnail > ,
uploadDate = = freezed
? _value . uploadDate
: uploadDate // ignore: cast_nullable_to_non_nullable
as String ? ,
isLive = = freezed
? _value . isLive
: isLive // ignore: cast_nullable_to_non_nullable
as bool ,
channelId = = freezed
? _value . channelId
: channelId // ignore: cast_nullable_to_non_nullable
as String ,
) ) ;
}
}
/// @nodoc
2022-02-28 12:26:56 +01:00
class _ $_SearchVideo implements _SearchVideo {
2021-07-19 00:47:22 +02:00
const _ $_SearchVideo (
this . id ,
this . title ,
this . author ,
this . description ,
this . duration ,
this . viewCount ,
this . thumbnails ,
this . uploadDate ,
this . isLive ,
this . channelId ) ;
@ override
/// Video ID.
final VideoId id ;
@ override
/// Video title.
final String title ;
@ override
/// Video author.
final String author ;
@ override
/// Video description snippet. (Part of the full description if too long)
final String description ;
@ override
/// Video duration as String, HH:MM:SS
final String duration ;
@ override
/// Video View Count
final int viewCount ;
@ override
/// Video thumbnail
final List < Thumbnail > thumbnails ;
@ override
/// Video upload date - As string: 5 years ago.
final String ? uploadDate ;
@ override
/// True if this video is a live stream.
2021-07-23 12:54:29 +02:00
// ignore: avoid_positional_boolean_parameters
2021-07-19 00:47:22 +02:00
final bool isLive ;
@ override
/// Channel id
final String channelId ;
@ override
String toString ( ) {
return ' SearchVideo(id: $ id , title: $ title , author: $ author , description: $ description , duration: $ duration , viewCount: $ viewCount , thumbnails: $ thumbnails , uploadDate: $ uploadDate , isLive: $ isLive , channelId: $ channelId ) ' ;
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
2021-11-12 21:04:53 +01:00
( other . runtimeType = = runtimeType & &
other is _SearchVideo & &
2021-12-14 06:38:56 +01:00
const DeepCollectionEquality ( ) . equals ( other . id , id ) & &
const DeepCollectionEquality ( ) . equals ( other . title , title ) & &
const DeepCollectionEquality ( ) . equals ( other . author , author ) & &
const DeepCollectionEquality ( )
. equals ( other . description , description ) & &
const DeepCollectionEquality ( ) . equals ( other . duration , duration ) & &
const DeepCollectionEquality ( ) . equals ( other . viewCount , viewCount ) & &
2021-11-12 21:04:53 +01:00
const DeepCollectionEquality ( )
. equals ( other . thumbnails , thumbnails ) & &
2021-12-14 06:38:56 +01:00
const DeepCollectionEquality ( )
. equals ( other . uploadDate , uploadDate ) & &
const DeepCollectionEquality ( ) . equals ( other . isLive , isLive ) & &
const DeepCollectionEquality ( ) . equals ( other . channelId , channelId ) ) ;
2021-07-19 00:47:22 +02:00
}
@ override
2021-11-12 21:04:53 +01:00
int get hashCode = > Object . hash (
runtimeType ,
2021-12-14 06:38:56 +01:00
const DeepCollectionEquality ( ) . hash ( id ) ,
const DeepCollectionEquality ( ) . hash ( title ) ,
const DeepCollectionEquality ( ) . hash ( author ) ,
const DeepCollectionEquality ( ) . hash ( description ) ,
const DeepCollectionEquality ( ) . hash ( duration ) ,
const DeepCollectionEquality ( ) . hash ( viewCount ) ,
2021-11-12 21:04:53 +01:00
const DeepCollectionEquality ( ) . hash ( thumbnails ) ,
2021-12-14 06:38:56 +01:00
const DeepCollectionEquality ( ) . hash ( uploadDate ) ,
const DeepCollectionEquality ( ) . hash ( isLive ) ,
const DeepCollectionEquality ( ) . hash ( channelId ) ) ;
2021-07-19 00:47:22 +02:00
@ JsonKey ( ignore: true )
@ override
_ $SearchVideoCopyWith < _SearchVideo > get copyWith = >
__ $SearchVideoCopyWithImpl < _SearchVideo > ( this , _ $identity ) ;
}
2022-02-28 12:26:56 +01:00
abstract class _SearchVideo implements SearchVideo {
2021-07-19 00:47:22 +02:00
const factory _SearchVideo (
VideoId id ,
String title ,
String author ,
String description ,
String duration ,
int viewCount ,
List < Thumbnail > thumbnails ,
String ? uploadDate ,
bool isLive ,
String channelId ) = _ $_SearchVideo ;
@ 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 description snippet. (Part of the full description if too long)
2021-11-12 21:04:53 +01:00
String get description ;
2021-07-19 00:47:22 +02:00
@ override
/// Video duration as String, HH:MM:SS
2021-11-12 21:04:53 +01:00
String get duration ;
2021-07-19 00:47:22 +02:00
@ override
/// Video View Count
2021-11-12 21:04:53 +01:00
int get viewCount ;
2021-07-19 00:47:22 +02:00
@ override
/// Video thumbnail
2021-11-12 21:04:53 +01:00
List < Thumbnail > get thumbnails ;
2021-07-19 00:47:22 +02:00
@ override
/// Video upload date - As string: 5 years ago.
2021-11-12 21:04:53 +01:00
String ? get uploadDate ;
2021-07-19 00:47:22 +02:00
@ override
/// True if this video is a live stream.
2021-07-23 12:54:29 +02:00
// 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
/// Channel id
2021-11-12 21:04:53 +01:00
String get channelId ;
2021-07-19 00:47:22 +02:00
@ override
@ JsonKey ( ignore: true )
_ $SearchVideoCopyWith < _SearchVideo > get copyWith = >
throw _privateConstructorUsedError ;
}