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 ' 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 _ $PlaylistTearOff {
const _ $PlaylistTearOff ( ) ;
_Playlist call ( PlaylistId id , String title , String author , String description ,
2021-08-29 13:26:21 +02:00
ThumbnailSet thumbnails , Engagement engagement , int ? videoCount ) {
2021-07-19 00:47:22 +02:00
return _Playlist (
id ,
title ,
author ,
description ,
thumbnails ,
engagement ,
2021-08-29 13:26:21 +02:00
videoCount ,
2021-07-19 00:47:22 +02:00
) ;
}
}
/// @nodoc
const $Playlist = _ $PlaylistTearOff ( ) ;
/// @nodoc
mixin _ $Playlist {
/// Playlist ID.
PlaylistId get id = > throw _privateConstructorUsedError ;
/// Playlist title.
String get title = > throw _privateConstructorUsedError ;
/// Playlist author.
/// Can be null if it's a system playlist (e.g. Video Mix, Topics, etc.).
String get author = > throw _privateConstructorUsedError ;
/// Playlist description.
String get description = > throw _privateConstructorUsedError ;
/// Available thumbnails for this playlist.
/// Can be null if the playlist is empty.
ThumbnailSet get thumbnails = > throw _privateConstructorUsedError ;
/// Engagement statistics.
Engagement get engagement = > throw _privateConstructorUsedError ;
2021-08-29 13:26:21 +02:00
/// Total videos in this playlist.
int ? get videoCount = > throw _privateConstructorUsedError ;
2021-07-19 00:47:22 +02:00
@ JsonKey ( ignore: true )
$PlaylistCopyWith < Playlist > get copyWith = >
throw _privateConstructorUsedError ;
}
/// @nodoc
abstract class $PlaylistCopyWith < $Res > {
factory $PlaylistCopyWith ( Playlist value , $Res Function ( Playlist ) then ) =
_ $PlaylistCopyWithImpl < $Res > ;
$Res call (
{ PlaylistId id ,
String title ,
String author ,
String description ,
ThumbnailSet thumbnails ,
2021-08-29 13:26:21 +02:00
Engagement engagement ,
int ? videoCount } ) ;
2021-07-19 00:47:22 +02:00
$PlaylistIdCopyWith < $Res > get id ;
$ThumbnailSetCopyWith < $Res > get thumbnails ;
$EngagementCopyWith < $Res > get engagement ;
}
/// @nodoc
class _ $PlaylistCopyWithImpl < $Res > implements $PlaylistCopyWith < $Res > {
_ $PlaylistCopyWithImpl ( this . _value , this . _then ) ;
final Playlist _value ;
// ignore: unused_field
final $Res Function ( Playlist ) _then ;
@ override
$Res call ( {
Object ? id = freezed ,
Object ? title = freezed ,
Object ? author = freezed ,
Object ? description = freezed ,
Object ? thumbnails = freezed ,
Object ? engagement = freezed ,
2021-08-29 13:26:21 +02:00
Object ? videoCount = freezed ,
2021-07-19 00:47:22 +02:00
} ) {
return _then ( _value . copyWith (
id: id = = freezed
? _value . id
: id // ignore: cast_nullable_to_non_nullable
as PlaylistId ,
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 ,
thumbnails: thumbnails = = freezed
? _value . thumbnails
: thumbnails // ignore: cast_nullable_to_non_nullable
as ThumbnailSet ,
engagement: engagement = = freezed
? _value . engagement
: engagement // ignore: cast_nullable_to_non_nullable
as Engagement ,
2021-08-29 13:26:21 +02:00
videoCount: videoCount = = freezed
? _value . videoCount
: videoCount // ignore: cast_nullable_to_non_nullable
as int ? ,
2021-07-19 00:47:22 +02:00
) ) ;
}
@ override
$PlaylistIdCopyWith < $Res > get id {
return $PlaylistIdCopyWith < $Res > ( _value . id , ( value ) {
return _then ( _value . copyWith ( id: 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 _ $PlaylistCopyWith < $Res > implements $PlaylistCopyWith < $Res > {
factory _ $PlaylistCopyWith ( _Playlist value , $Res Function ( _Playlist ) then ) =
__ $PlaylistCopyWithImpl < $Res > ;
@ override
$Res call (
{ PlaylistId id ,
String title ,
String author ,
String description ,
ThumbnailSet thumbnails ,
2021-08-29 13:26:21 +02:00
Engagement engagement ,
int ? videoCount } ) ;
2021-07-19 00:47:22 +02:00
@ override
$PlaylistIdCopyWith < $Res > get id ;
@ override
$ThumbnailSetCopyWith < $Res > get thumbnails ;
@ override
$EngagementCopyWith < $Res > get engagement ;
}
/// @nodoc
class __ $PlaylistCopyWithImpl < $Res > extends _ $PlaylistCopyWithImpl < $Res >
implements _ $PlaylistCopyWith < $Res > {
__ $PlaylistCopyWithImpl ( _Playlist _value , $Res Function ( _Playlist ) _then )
: super ( _value , ( v ) = > _then ( v as _Playlist ) ) ;
@ override
_Playlist get _value = > super . _value as _Playlist ;
@ override
$Res call ( {
Object ? id = freezed ,
Object ? title = freezed ,
Object ? author = freezed ,
Object ? description = freezed ,
Object ? thumbnails = freezed ,
Object ? engagement = freezed ,
2021-08-29 13:26:21 +02:00
Object ? videoCount = freezed ,
2021-07-19 00:47:22 +02:00
} ) {
return _then ( _Playlist (
id = = freezed
? _value . id
: id // ignore: cast_nullable_to_non_nullable
as PlaylistId ,
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 ,
thumbnails = = freezed
? _value . thumbnails
: thumbnails // ignore: cast_nullable_to_non_nullable
as ThumbnailSet ,
engagement = = freezed
? _value . engagement
: engagement // ignore: cast_nullable_to_non_nullable
as Engagement ,
2021-08-29 13:26:21 +02:00
videoCount = = freezed
? _value . videoCount
: videoCount // ignore: cast_nullable_to_non_nullable
as int ? ,
2021-07-19 00:47:22 +02:00
) ) ;
}
}
/// @nodoc
class _ $_Playlist extends _Playlist {
const _ $_Playlist ( this . id , this . title , this . author , this . description ,
2021-08-29 13:26:21 +02:00
this . thumbnails , this . engagement , this . videoCount )
2021-07-19 00:47:22 +02:00
: super . _ ( ) ;
@ override
/// Playlist ID.
final PlaylistId id ;
@ override
/// Playlist title.
final String title ;
@ override
/// Playlist author.
/// Can be null if it's a system playlist (e.g. Video Mix, Topics, etc.).
final String author ;
@ override
/// Playlist description.
final String description ;
@ override
/// Available thumbnails for this playlist.
/// Can be null if the playlist is empty.
final ThumbnailSet thumbnails ;
@ override
/// Engagement statistics.
final Engagement engagement ;
2021-08-29 13:26:21 +02:00
@ override
/// Total videos in this playlist.
final int ? videoCount ;
2021-07-19 00:47:22 +02:00
@ override
String toString ( ) {
2021-08-29 13:26:21 +02:00
return ' Playlist(id: $ id , title: $ title , author: $ author , description: $ description , thumbnails: $ thumbnails , engagement: $ engagement , videoCount: $ videoCount ) ' ;
2021-07-19 00:47:22 +02:00
}
@ override
bool operator = = ( dynamic other ) {
return identical ( this , other ) | |
2021-11-12 21:04:53 +01:00
( other . runtimeType = = runtimeType & &
other is _Playlist & &
( 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 . description , description ) | |
2021-11-12 21:04:53 +01:00
other . description = = description ) & &
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 . engagement , engagement ) | |
2021-11-12 21:04:53 +01:00
other . engagement = = engagement ) & &
2021-08-29 13:26:21 +02:00
( identical ( other . videoCount , videoCount ) | |
2021-11-12 21:04:53 +01:00
other . videoCount = = videoCount ) ) ;
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 , description ,
thumbnails , engagement , videoCount ) ;
2021-07-19 00:47:22 +02:00
@ JsonKey ( ignore: true )
@ override
_ $PlaylistCopyWith < _Playlist > get copyWith = >
__ $PlaylistCopyWithImpl < _Playlist > ( this , _ $identity ) ;
}
abstract class _Playlist extends Playlist {
const factory _Playlist (
PlaylistId id ,
String title ,
String author ,
String description ,
ThumbnailSet thumbnails ,
2021-08-29 13:26:21 +02:00
Engagement engagement ,
int ? videoCount ) = _ $_Playlist ;
2021-07-19 00:47:22 +02:00
const _Playlist . _ ( ) : super . _ ( ) ;
@ override
/// Playlist ID.
2021-11-12 21:04:53 +01:00
PlaylistId get id ;
2021-07-19 00:47:22 +02:00
@ override
/// Playlist title.
2021-11-12 21:04:53 +01:00
String get title ;
2021-07-19 00:47:22 +02:00
@ override
/// Playlist author.
/// Can be null if it's a system playlist (e.g. Video Mix, Topics, etc.).
2021-11-12 21:04:53 +01:00
String get author ;
2021-07-19 00:47:22 +02:00
@ override
/// Playlist description.
2021-11-12 21:04:53 +01:00
String get description ;
2021-07-19 00:47:22 +02:00
@ override
/// Available thumbnails for this playlist.
/// Can be null if the playlist is empty.
2021-11-12 21:04:53 +01:00
ThumbnailSet get thumbnails ;
2021-07-19 00:47:22 +02:00
@ override
/// Engagement statistics.
2021-11-12 21:04:53 +01:00
Engagement get engagement ;
2021-07-19 00:47:22 +02:00
@ override
2021-08-29 13:26:21 +02:00
/// Total videos in this playlist.
2021-11-12 21:04:53 +01:00
int ? get videoCount ;
2021-08-29 13:26:21 +02:00
@ override
2021-07-19 00:47:22 +02:00
@ JsonKey ( ignore: true )
_ $PlaylistCopyWith < _Playlist > get copyWith = >
throw _privateConstructorUsedError ;
}