// coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint // 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 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.\nPlease check the documentation here for more informations: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); /// @nodoc class _$SearchPlaylistTearOff { const _$SearchPlaylistTearOff(); _SearchPlaylist call(PlaylistId playlistId, String playlistTitle, int playlistVideoCount, List thumbnails) { return _SearchPlaylist( playlistId, playlistTitle, playlistVideoCount, thumbnails, ); } } /// @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; /// Video thumbnail List get thumbnails => throw _privateConstructorUsedError; @JsonKey(ignore: true) $SearchPlaylistCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $SearchPlaylistCopyWith<$Res> { factory $SearchPlaylistCopyWith( SearchPlaylist value, $Res Function(SearchPlaylist) then) = _$SearchPlaylistCopyWithImpl<$Res>; $Res call( {PlaylistId playlistId, String playlistTitle, int playlistVideoCount, List thumbnails}); $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, Object? thumbnails = freezed, }) { 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, thumbnails: thumbnails == freezed ? _value.thumbnails : thumbnails // ignore: cast_nullable_to_non_nullable as List, )); } @override $PlaylistIdCopyWith<$Res> get playlistId { return $PlaylistIdCopyWith<$Res>(_value.playlistId, (value) { return _then(_value.copyWith(playlistId: value)); }); } } /// @nodoc abstract class _$SearchPlaylistCopyWith<$Res> implements $SearchPlaylistCopyWith<$Res> { factory _$SearchPlaylistCopyWith( _SearchPlaylist value, $Res Function(_SearchPlaylist) then) = __$SearchPlaylistCopyWithImpl<$Res>; @override $Res call( {PlaylistId playlistId, String playlistTitle, int playlistVideoCount, List thumbnails}); @override $PlaylistIdCopyWith<$Res> get playlistId; } /// @nodoc class __$SearchPlaylistCopyWithImpl<$Res> extends _$SearchPlaylistCopyWithImpl<$Res> implements _$SearchPlaylistCopyWith<$Res> { __$SearchPlaylistCopyWithImpl( _SearchPlaylist _value, $Res Function(_SearchPlaylist) _then) : super(_value, (v) => _then(v as _SearchPlaylist)); @override _SearchPlaylist get _value => super._value as _SearchPlaylist; @override $Res call({ Object? playlistId = freezed, Object? playlistTitle = freezed, Object? playlistVideoCount = freezed, Object? thumbnails = freezed, }) { return _then(_SearchPlaylist( 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, thumbnails == freezed ? _value.thumbnails : thumbnails // ignore: cast_nullable_to_non_nullable as List, )); } } /// @nodoc class _$_SearchPlaylist implements _SearchPlaylist { const _$_SearchPlaylist(this.playlistId, this.playlistTitle, this.playlistVideoCount, this.thumbnails); @override /// PlaylistId. final PlaylistId playlistId; @override /// Playlist title. final String playlistTitle; @override /// Playlist video count, cannot be greater than 50. final int playlistVideoCount; @override /// Video thumbnail final List thumbnails; @override String toString() { return 'SearchPlaylist(playlistId: $playlistId, playlistTitle: $playlistTitle, playlistVideoCount: $playlistVideoCount, thumbnails: $thumbnails)'; } @override bool operator ==(dynamic other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _SearchPlaylist && const DeepCollectionEquality() .equals(other.playlistId, playlistId) && const DeepCollectionEquality() .equals(other.playlistTitle, playlistTitle) && const DeepCollectionEquality() .equals(other.playlistVideoCount, playlistVideoCount) && const DeepCollectionEquality() .equals(other.thumbnails, thumbnails)); } @override int get hashCode => Object.hash( runtimeType, const DeepCollectionEquality().hash(playlistId), const DeepCollectionEquality().hash(playlistTitle), const DeepCollectionEquality().hash(playlistVideoCount), const DeepCollectionEquality().hash(thumbnails)); @JsonKey(ignore: true) @override _$SearchPlaylistCopyWith<_SearchPlaylist> get copyWith => __$SearchPlaylistCopyWithImpl<_SearchPlaylist>(this, _$identity); } abstract class _SearchPlaylist implements SearchPlaylist { const factory _SearchPlaylist(PlaylistId playlistId, String playlistTitle, int playlistVideoCount, List thumbnails) = _$_SearchPlaylist; @override /// PlaylistId. PlaylistId get playlistId; @override /// Playlist title. String get playlistTitle; @override /// Playlist video count, cannot be greater than 50. int get playlistVideoCount; @override /// Video thumbnail List get thumbnails; @override @JsonKey(ignore: true) _$SearchPlaylistCopyWith<_SearchPlaylist> get copyWith => throw _privateConstructorUsedError; }