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 ' search_playlist.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 _ $SearchPlaylistTearOff {
const _ $SearchPlaylistTearOff ( ) ;
2021-10-16 08:47:24 +02:00
_SearchPlaylist call ( PlaylistId playlistId , String playlistTitle ,
int playlistVideoCount , List < Thumbnail > thumbnails ) {
return _SearchPlaylist (
2021-07-19 00:47:22 +02:00
playlistId ,
playlistTitle ,
playlistVideoCount ,
2021-10-16 08:47:24 +02:00
thumbnails ,
2021-07-19 00:47:22 +02:00
) ;
}
}
/// @nodoc
const $SearchPlaylist = _ $SearchPlaylistTearOff ( ) ;
/// @nodoc
mixin _ $SearchPlaylist {
/// PlaylistId.
PlaylistId get playlistId = > throw _privateConstructorUsedError ;
/// Playlist title.
String get playlistTitle = > throw _privateConstructorUsedError ;
/// Playlist video count, cannot be greater than 50.
int get playlistVideoCount = > throw _privateConstructorUsedError ;
2021-10-16 08:47:24 +02:00
/// Video thumbnail
List < Thumbnail > get thumbnails = > throw _privateConstructorUsedError ;
2021-07-19 00:47:22 +02:00
@ JsonKey ( ignore: true )
$SearchPlaylistCopyWith < SearchPlaylist > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $SearchPlaylistCopyWith < $Res > {
factory $SearchPlaylistCopyWith (
SearchPlaylist value , $Res Function ( SearchPlaylist ) then ) =
_ $SearchPlaylistCopyWithImpl < $Res > ;
$Res call (
2021-10-16 08:47:24 +02:00
{ PlaylistId playlistId ,
String playlistTitle ,
int playlistVideoCount ,
List < Thumbnail > thumbnails } ) ;
2021-07-19 00:47:22 +02:00
$PlaylistIdCopyWith < $Res > get playlistId ;
}
/// @nodoc
class _ $SearchPlaylistCopyWithImpl < $Res >
implements $SearchPlaylistCopyWith < $Res > {
_ $SearchPlaylistCopyWithImpl ( this . _value , this . _then ) ;
final SearchPlaylist _value ;
// ignore: unused_field
final $Res Function ( SearchPlaylist ) _then ;
@ override
$Res call ( {
Object ? playlistId = freezed ,
Object ? playlistTitle = freezed ,
Object ? playlistVideoCount = freezed ,
2021-10-16 08:47:24 +02:00
Object ? thumbnails = freezed ,
2021-07-19 00:47:22 +02:00
} ) {
return _then ( _value . copyWith (
playlistId: playlistId = = freezed
? _value . playlistId
: playlistId // ignore: cast_nullable_to_non_nullable
as PlaylistId ,
playlistTitle: playlistTitle = = freezed
? _value . playlistTitle
: playlistTitle // ignore: cast_nullable_to_non_nullable
as String ,
playlistVideoCount: playlistVideoCount = = freezed
? _value . playlistVideoCount
: playlistVideoCount // ignore: cast_nullable_to_non_nullable
as int ,
2021-10-16 08:47:24 +02:00
thumbnails: thumbnails = = freezed
? _value . thumbnails
: thumbnails // ignore: cast_nullable_to_non_nullable
as List < Thumbnail > ,
2021-07-19 00:47:22 +02:00
) ) ;
}
@ override
$PlaylistIdCopyWith < $Res > get playlistId {
return $PlaylistIdCopyWith < $Res > ( _value . playlistId , ( value ) {
return _then ( _value . copyWith ( playlistId: value ) ) ;
} ) ;
}
}
/// @nodoc
2021-10-16 08:47:24 +02:00
abstract class _ $SearchPlaylistCopyWith < $Res >
2021-07-19 00:47:22 +02:00
implements $SearchPlaylistCopyWith < $Res > {
2021-10-16 08:47:24 +02:00
factory _ $SearchPlaylistCopyWith (
_SearchPlaylist value , $Res Function ( _SearchPlaylist ) then ) =
__ $SearchPlaylistCopyWithImpl < $Res > ;
2021-07-19 00:47:22 +02:00
@ override
$Res call (
2021-10-16 08:47:24 +02:00
{ PlaylistId playlistId ,
String playlistTitle ,
int playlistVideoCount ,
List < Thumbnail > thumbnails } ) ;
2021-07-19 00:47:22 +02:00
@ override
$PlaylistIdCopyWith < $Res > get playlistId ;
}
/// @nodoc
2021-10-16 08:47:24 +02:00
class __ $SearchPlaylistCopyWithImpl < $Res >
2021-07-19 00:47:22 +02:00
extends _ $SearchPlaylistCopyWithImpl < $Res >
2021-10-16 08:47:24 +02:00
implements _ $SearchPlaylistCopyWith < $Res > {
__ $SearchPlaylistCopyWithImpl (
_SearchPlaylist _value , $Res Function ( _SearchPlaylist ) _then )
: super ( _value , ( v ) = > _then ( v as _SearchPlaylist ) ) ;
2021-07-19 00:47:22 +02:00
@ override
2021-10-16 08:47:24 +02:00
_SearchPlaylist get _value = > super . _value as _SearchPlaylist ;
2021-07-19 00:47:22 +02:00
@ override
$Res call ( {
Object ? playlistId = freezed ,
Object ? playlistTitle = freezed ,
Object ? playlistVideoCount = freezed ,
2021-10-16 08:47:24 +02:00
Object ? thumbnails = freezed ,
2021-07-19 00:47:22 +02:00
} ) {
2021-10-16 08:47:24 +02:00
return _then ( _SearchPlaylist (
2021-07-19 00:47:22 +02:00
playlistId = = freezed
? _value . playlistId
: playlistId // ignore: cast_nullable_to_non_nullable
as PlaylistId ,
playlistTitle = = freezed
? _value . playlistTitle
: playlistTitle // ignore: cast_nullable_to_non_nullable
as String ,
playlistVideoCount = = freezed
? _value . playlistVideoCount
: playlistVideoCount // ignore: cast_nullable_to_non_nullable
as int ,
2021-10-16 08:47:24 +02:00
thumbnails = = freezed
? _value . thumbnails
: thumbnails // ignore: cast_nullable_to_non_nullable
as List < Thumbnail > ,
2021-07-19 00:47:22 +02:00
) ) ;
}
}
/// @nodoc
@ With ( BaseSearchContent )
2021-10-16 08:47:24 +02:00
class _ $_SearchPlaylist with BaseSearchContent implements _SearchPlaylist {
const _ $_SearchPlaylist ( this . playlistId , this . playlistTitle ,
this . playlistVideoCount , this . thumbnails ) ;
2021-07-19 00:47:22 +02:00
@ override
/// PlaylistId.
final PlaylistId playlistId ;
@ override
/// Playlist title.
final String playlistTitle ;
@ override
/// Playlist video count, cannot be greater than 50.
final int playlistVideoCount ;
2021-10-16 08:47:24 +02:00
@ override
/// Video thumbnail
final List < Thumbnail > thumbnails ;
2021-07-19 00:47:22 +02:00
@ override
String toString ( ) {
2021-10-16 08:47:24 +02:00
return ' SearchPlaylist(playlistId: $ playlistId , playlistTitle: $ playlistTitle , playlistVideoCount: $ playlistVideoCount , thumbnails: $ thumbnails ) ' ;
2021-07-19 00:47:22 +02:00
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
2021-10-16 08:47:24 +02:00
( other is _SearchPlaylist & &
2021-07-19 00:47:22 +02:00
( identical ( other . playlistId , playlistId ) | |
const DeepCollectionEquality ( )
. equals ( other . playlistId , playlistId ) ) & &
( identical ( other . playlistTitle , playlistTitle ) | |
const DeepCollectionEquality ( )
. equals ( other . playlistTitle , playlistTitle ) ) & &
( identical ( other . playlistVideoCount , playlistVideoCount ) | |
const DeepCollectionEquality ( )
2021-10-16 08:47:24 +02:00
. equals ( other . playlistVideoCount , playlistVideoCount ) ) & &
( identical ( other . thumbnails , thumbnails ) | |
const DeepCollectionEquality ( )
. equals ( other . thumbnails , thumbnails ) ) ) ;
2021-07-19 00:47:22 +02:00
}
@ override
int get hashCode = >
runtimeType . hashCode ^
const DeepCollectionEquality ( ) . hash ( playlistId ) ^
const DeepCollectionEquality ( ) . hash ( playlistTitle ) ^
2021-10-16 08:47:24 +02:00
const DeepCollectionEquality ( ) . hash ( playlistVideoCount ) ^
const DeepCollectionEquality ( ) . hash ( thumbnails ) ;
2021-07-19 00:47:22 +02:00
@ JsonKey ( ignore: true )
@ override
2021-10-16 08:47:24 +02:00
_ $SearchPlaylistCopyWith < _SearchPlaylist > get copyWith = >
__ $SearchPlaylistCopyWithImpl < _SearchPlaylist > ( this , _ $identity ) ;
2021-07-19 00:47:22 +02:00
}
2021-10-16 08:47:24 +02:00
abstract class _SearchPlaylist implements SearchPlaylist , BaseSearchContent {
const factory _SearchPlaylist ( PlaylistId playlistId , String playlistTitle ,
int playlistVideoCount , List < Thumbnail > thumbnails ) = _ $_SearchPlaylist ;
2021-07-19 00:47:22 +02:00
@ override
/// PlaylistId.
PlaylistId get playlistId = > throw _privateConstructorUsedError ;
@ override
/// Playlist title.
String get playlistTitle = > throw _privateConstructorUsedError ;
@ override
/// Playlist video count, cannot be greater than 50.
int get playlistVideoCount = > throw _privateConstructorUsedError ;
@ override
2021-10-16 08:47:24 +02:00
/// Video thumbnail
List < Thumbnail > get thumbnails = > throw _privateConstructorUsedError ;
@ override
2021-07-19 00:47:22 +02:00
@ JsonKey ( ignore: true )
2021-10-16 08:47:24 +02:00
_ $SearchPlaylistCopyWith < _SearchPlaylist > get copyWith = >
2021-07-19 00:47:22 +02:00
throw _privateConstructorUsedError ;
}