youtube_explode/lib/src/channels/channel_about.freezed.dart

327 lines
9.5 KiB
Dart

// coverage:ignore-file
// 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_about.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.\nPlease check the documentation here for more informations: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
/// @nodoc
class _$ChannelAboutTearOff {
const _$ChannelAboutTearOff();
_ChannelAbout call(
String description,
int viewCount,
String joinDate,
String title,
List<Thumbnail> thumbnails,
String country,
List<ChannelLink> channelLinks) {
return _ChannelAbout(
description,
viewCount,
joinDate,
title,
thumbnails,
country,
channelLinks,
);
}
}
/// @nodoc
const $ChannelAbout = _$ChannelAboutTearOff();
/// @nodoc
mixin _$ChannelAbout {
/// Full channel description.
String get description => throw _privateConstructorUsedError;
/// Channel view count.
int get viewCount => throw _privateConstructorUsedError;
/// Channel join date.
/// Formatted as: Gen 01, 2000
String get joinDate => throw _privateConstructorUsedError;
/// Channel title.
String get title => throw _privateConstructorUsedError;
/// Channel thumbnails.
List<Thumbnail> get thumbnails => throw _privateConstructorUsedError;
/// Channel country.
String get country => throw _privateConstructorUsedError;
/// Channel links.
List<ChannelLink> get channelLinks => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
$ChannelAboutCopyWith<ChannelAbout> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $ChannelAboutCopyWith<$Res> {
factory $ChannelAboutCopyWith(
ChannelAbout value, $Res Function(ChannelAbout) then) =
_$ChannelAboutCopyWithImpl<$Res>;
$Res call(
{String description,
int viewCount,
String joinDate,
String title,
List<Thumbnail> thumbnails,
String country,
List<ChannelLink> channelLinks});
}
/// @nodoc
class _$ChannelAboutCopyWithImpl<$Res> implements $ChannelAboutCopyWith<$Res> {
_$ChannelAboutCopyWithImpl(this._value, this._then);
final ChannelAbout _value;
// ignore: unused_field
final $Res Function(ChannelAbout) _then;
@override
$Res call({
Object? description = freezed,
Object? viewCount = freezed,
Object? joinDate = freezed,
Object? title = freezed,
Object? thumbnails = freezed,
Object? country = freezed,
Object? channelLinks = freezed,
}) {
return _then(_value.copyWith(
description: description == freezed
? _value.description
: description // ignore: cast_nullable_to_non_nullable
as String,
viewCount: viewCount == freezed
? _value.viewCount
: viewCount // ignore: cast_nullable_to_non_nullable
as int,
joinDate: joinDate == freezed
? _value.joinDate
: joinDate // ignore: cast_nullable_to_non_nullable
as String,
title: title == freezed
? _value.title
: title // ignore: cast_nullable_to_non_nullable
as String,
thumbnails: thumbnails == freezed
? _value.thumbnails
: thumbnails // ignore: cast_nullable_to_non_nullable
as List<Thumbnail>,
country: country == freezed
? _value.country
: country // ignore: cast_nullable_to_non_nullable
as String,
channelLinks: channelLinks == freezed
? _value.channelLinks
: channelLinks // ignore: cast_nullable_to_non_nullable
as List<ChannelLink>,
));
}
}
/// @nodoc
abstract class _$ChannelAboutCopyWith<$Res>
implements $ChannelAboutCopyWith<$Res> {
factory _$ChannelAboutCopyWith(
_ChannelAbout value, $Res Function(_ChannelAbout) then) =
__$ChannelAboutCopyWithImpl<$Res>;
@override
$Res call(
{String description,
int viewCount,
String joinDate,
String title,
List<Thumbnail> thumbnails,
String country,
List<ChannelLink> channelLinks});
}
/// @nodoc
class __$ChannelAboutCopyWithImpl<$Res> extends _$ChannelAboutCopyWithImpl<$Res>
implements _$ChannelAboutCopyWith<$Res> {
__$ChannelAboutCopyWithImpl(
_ChannelAbout _value, $Res Function(_ChannelAbout) _then)
: super(_value, (v) => _then(v as _ChannelAbout));
@override
_ChannelAbout get _value => super._value as _ChannelAbout;
@override
$Res call({
Object? description = freezed,
Object? viewCount = freezed,
Object? joinDate = freezed,
Object? title = freezed,
Object? thumbnails = freezed,
Object? country = freezed,
Object? channelLinks = freezed,
}) {
return _then(_ChannelAbout(
description == freezed
? _value.description
: description // ignore: cast_nullable_to_non_nullable
as String,
viewCount == freezed
? _value.viewCount
: viewCount // ignore: cast_nullable_to_non_nullable
as int,
joinDate == freezed
? _value.joinDate
: joinDate // ignore: cast_nullable_to_non_nullable
as String,
title == freezed
? _value.title
: title // ignore: cast_nullable_to_non_nullable
as String,
thumbnails == freezed
? _value.thumbnails
: thumbnails // ignore: cast_nullable_to_non_nullable
as List<Thumbnail>,
country == freezed
? _value.country
: country // ignore: cast_nullable_to_non_nullable
as String,
channelLinks == freezed
? _value.channelLinks
: channelLinks // ignore: cast_nullable_to_non_nullable
as List<ChannelLink>,
));
}
}
/// @nodoc
class _$_ChannelAbout implements _ChannelAbout {
const _$_ChannelAbout(this.description, this.viewCount, this.joinDate,
this.title, this.thumbnails, this.country, this.channelLinks);
@override
/// Full channel description.
final String description;
@override
/// Channel view count.
final int viewCount;
@override
/// Channel join date.
/// Formatted as: Gen 01, 2000
final String joinDate;
@override
/// Channel title.
final String title;
@override
/// Channel thumbnails.
final List<Thumbnail> thumbnails;
@override
/// Channel country.
final String country;
@override
/// Channel links.
final List<ChannelLink> channelLinks;
@override
String toString() {
return 'ChannelAbout(description: $description, viewCount: $viewCount, joinDate: $joinDate, title: $title, thumbnails: $thumbnails, country: $country, channelLinks: $channelLinks)';
}
@override
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _ChannelAbout &&
const DeepCollectionEquality()
.equals(other.description, description) &&
const DeepCollectionEquality().equals(other.viewCount, viewCount) &&
const DeepCollectionEquality().equals(other.joinDate, joinDate) &&
const DeepCollectionEquality().equals(other.title, title) &&
const DeepCollectionEquality()
.equals(other.thumbnails, thumbnails) &&
const DeepCollectionEquality().equals(other.country, country) &&
const DeepCollectionEquality()
.equals(other.channelLinks, channelLinks));
}
@override
int get hashCode => Object.hash(
runtimeType,
const DeepCollectionEquality().hash(description),
const DeepCollectionEquality().hash(viewCount),
const DeepCollectionEquality().hash(joinDate),
const DeepCollectionEquality().hash(title),
const DeepCollectionEquality().hash(thumbnails),
const DeepCollectionEquality().hash(country),
const DeepCollectionEquality().hash(channelLinks));
@JsonKey(ignore: true)
@override
_$ChannelAboutCopyWith<_ChannelAbout> get copyWith =>
__$ChannelAboutCopyWithImpl<_ChannelAbout>(this, _$identity);
}
abstract class _ChannelAbout implements ChannelAbout {
const factory _ChannelAbout(
String description,
int viewCount,
String joinDate,
String title,
List<Thumbnail> thumbnails,
String country,
List<ChannelLink> channelLinks) = _$_ChannelAbout;
@override
/// Full channel description.
String get description;
@override
/// Channel view count.
int get viewCount;
@override
/// Channel join date.
/// Formatted as: Gen 01, 2000
String get joinDate;
@override
/// Channel title.
String get title;
@override
/// Channel thumbnails.
List<Thumbnail> get thumbnails;
@override
/// Channel country.
String get country;
@override
/// Channel links.
List<ChannelLink> get channelLinks;
@override
@JsonKey(ignore: true)
_$ChannelAboutCopyWith<_ChannelAbout> get copyWith =>
throw _privateConstructorUsedError;
}