subtracks/lib/models/music.freezed.dart
austinried f0f812e66a v2
2023-04-28 12:26:02 +09:00

1835 lines
54 KiB
Dart

// 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, unnecessary_question_mark
part of 'music.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 information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
/// @nodoc
mixin _$SourceId {
int get sourceId => throw _privateConstructorUsedError;
String get id => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
$SourceIdCopyWith<SourceId> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $SourceIdCopyWith<$Res> {
factory $SourceIdCopyWith(SourceId value, $Res Function(SourceId) then) =
_$SourceIdCopyWithImpl<$Res, SourceId>;
@useResult
$Res call({int sourceId, String id});
}
/// @nodoc
class _$SourceIdCopyWithImpl<$Res, $Val extends SourceId>
implements $SourceIdCopyWith<$Res> {
_$SourceIdCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
@pragma('vm:prefer-inline')
@override
$Res call({
Object? sourceId = null,
Object? id = null,
}) {
return _then(_value.copyWith(
sourceId: null == sourceId
? _value.sourceId
: sourceId // ignore: cast_nullable_to_non_nullable
as int,
id: null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as String,
) as $Val);
}
}
/// @nodoc
abstract class _$$_SourceIdCopyWith<$Res> implements $SourceIdCopyWith<$Res> {
factory _$$_SourceIdCopyWith(
_$_SourceId value, $Res Function(_$_SourceId) then) =
__$$_SourceIdCopyWithImpl<$Res>;
@override
@useResult
$Res call({int sourceId, String id});
}
/// @nodoc
class __$$_SourceIdCopyWithImpl<$Res>
extends _$SourceIdCopyWithImpl<$Res, _$_SourceId>
implements _$$_SourceIdCopyWith<$Res> {
__$$_SourceIdCopyWithImpl(
_$_SourceId _value, $Res Function(_$_SourceId) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@override
$Res call({
Object? sourceId = null,
Object? id = null,
}) {
return _then(_$_SourceId(
sourceId: null == sourceId
? _value.sourceId
: sourceId // ignore: cast_nullable_to_non_nullable
as int,
id: null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as String,
));
}
}
/// @nodoc
class _$_SourceId with DiagnosticableTreeMixin implements _SourceId {
const _$_SourceId({required this.sourceId, required this.id});
@override
final int sourceId;
@override
final String id;
@override
String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
return 'SourceId(sourceId: $sourceId, id: $id)';
}
@override
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
super.debugFillProperties(properties);
properties
..add(DiagnosticsProperty('type', 'SourceId'))
..add(DiagnosticsProperty('sourceId', sourceId))
..add(DiagnosticsProperty('id', id));
}
@override
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$_SourceId &&
(identical(other.sourceId, sourceId) ||
other.sourceId == sourceId) &&
(identical(other.id, id) || other.id == id));
}
@override
int get hashCode => Object.hash(runtimeType, sourceId, id);
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$_SourceIdCopyWith<_$_SourceId> get copyWith =>
__$$_SourceIdCopyWithImpl<_$_SourceId>(this, _$identity);
}
abstract class _SourceId implements SourceId {
const factory _SourceId(
{required final int sourceId, required final String id}) = _$_SourceId;
@override
int get sourceId;
@override
String get id;
@override
@JsonKey(ignore: true)
_$$_SourceIdCopyWith<_$_SourceId> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
mixin _$SourceIdSet {
int get sourceId => throw _privateConstructorUsedError;
ISet<String> get ids => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
$SourceIdSetCopyWith<SourceIdSet> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $SourceIdSetCopyWith<$Res> {
factory $SourceIdSetCopyWith(
SourceIdSet value, $Res Function(SourceIdSet) then) =
_$SourceIdSetCopyWithImpl<$Res, SourceIdSet>;
@useResult
$Res call({int sourceId, ISet<String> ids});
}
/// @nodoc
class _$SourceIdSetCopyWithImpl<$Res, $Val extends SourceIdSet>
implements $SourceIdSetCopyWith<$Res> {
_$SourceIdSetCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
@pragma('vm:prefer-inline')
@override
$Res call({
Object? sourceId = null,
Object? ids = null,
}) {
return _then(_value.copyWith(
sourceId: null == sourceId
? _value.sourceId
: sourceId // ignore: cast_nullable_to_non_nullable
as int,
ids: null == ids
? _value.ids
: ids // ignore: cast_nullable_to_non_nullable
as ISet<String>,
) as $Val);
}
}
/// @nodoc
abstract class _$$_SourceIdSetCopyWith<$Res>
implements $SourceIdSetCopyWith<$Res> {
factory _$$_SourceIdSetCopyWith(
_$_SourceIdSet value, $Res Function(_$_SourceIdSet) then) =
__$$_SourceIdSetCopyWithImpl<$Res>;
@override
@useResult
$Res call({int sourceId, ISet<String> ids});
}
/// @nodoc
class __$$_SourceIdSetCopyWithImpl<$Res>
extends _$SourceIdSetCopyWithImpl<$Res, _$_SourceIdSet>
implements _$$_SourceIdSetCopyWith<$Res> {
__$$_SourceIdSetCopyWithImpl(
_$_SourceIdSet _value, $Res Function(_$_SourceIdSet) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@override
$Res call({
Object? sourceId = null,
Object? ids = null,
}) {
return _then(_$_SourceIdSet(
sourceId: null == sourceId
? _value.sourceId
: sourceId // ignore: cast_nullable_to_non_nullable
as int,
ids: null == ids
? _value.ids
: ids // ignore: cast_nullable_to_non_nullable
as ISet<String>,
));
}
}
/// @nodoc
class _$_SourceIdSet with DiagnosticableTreeMixin implements _SourceIdSet {
const _$_SourceIdSet({required this.sourceId, required this.ids});
@override
final int sourceId;
@override
final ISet<String> ids;
@override
String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
return 'SourceIdSet(sourceId: $sourceId, ids: $ids)';
}
@override
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
super.debugFillProperties(properties);
properties
..add(DiagnosticsProperty('type', 'SourceIdSet'))
..add(DiagnosticsProperty('sourceId', sourceId))
..add(DiagnosticsProperty('ids', ids));
}
@override
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$_SourceIdSet &&
(identical(other.sourceId, sourceId) ||
other.sourceId == sourceId) &&
const DeepCollectionEquality().equals(other.ids, ids));
}
@override
int get hashCode => Object.hash(
runtimeType, sourceId, const DeepCollectionEquality().hash(ids));
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$_SourceIdSetCopyWith<_$_SourceIdSet> get copyWith =>
__$$_SourceIdSetCopyWithImpl<_$_SourceIdSet>(this, _$identity);
}
abstract class _SourceIdSet implements SourceIdSet {
const factory _SourceIdSet(
{required final int sourceId,
required final ISet<String> ids}) = _$_SourceIdSet;
@override
int get sourceId;
@override
ISet<String> get ids;
@override
@JsonKey(ignore: true)
_$$_SourceIdSetCopyWith<_$_SourceIdSet> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
mixin _$Artist {
int get sourceId => throw _privateConstructorUsedError;
String get id => throw _privateConstructorUsedError;
String get name => throw _privateConstructorUsedError;
int get albumCount => throw _privateConstructorUsedError;
DateTime? get starred => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
$ArtistCopyWith<Artist> get copyWith => throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $ArtistCopyWith<$Res> {
factory $ArtistCopyWith(Artist value, $Res Function(Artist) then) =
_$ArtistCopyWithImpl<$Res, Artist>;
@useResult
$Res call(
{int sourceId,
String id,
String name,
int albumCount,
DateTime? starred});
}
/// @nodoc
class _$ArtistCopyWithImpl<$Res, $Val extends Artist>
implements $ArtistCopyWith<$Res> {
_$ArtistCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
@pragma('vm:prefer-inline')
@override
$Res call({
Object? sourceId = null,
Object? id = null,
Object? name = null,
Object? albumCount = null,
Object? starred = freezed,
}) {
return _then(_value.copyWith(
sourceId: null == sourceId
? _value.sourceId
: sourceId // ignore: cast_nullable_to_non_nullable
as int,
id: null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as String,
name: null == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String,
albumCount: null == albumCount
? _value.albumCount
: albumCount // ignore: cast_nullable_to_non_nullable
as int,
starred: freezed == starred
? _value.starred
: starred // ignore: cast_nullable_to_non_nullable
as DateTime?,
) as $Val);
}
}
/// @nodoc
abstract class _$$_ArtistCopyWith<$Res> implements $ArtistCopyWith<$Res> {
factory _$$_ArtistCopyWith(_$_Artist value, $Res Function(_$_Artist) then) =
__$$_ArtistCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{int sourceId,
String id,
String name,
int albumCount,
DateTime? starred});
}
/// @nodoc
class __$$_ArtistCopyWithImpl<$Res>
extends _$ArtistCopyWithImpl<$Res, _$_Artist>
implements _$$_ArtistCopyWith<$Res> {
__$$_ArtistCopyWithImpl(_$_Artist _value, $Res Function(_$_Artist) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@override
$Res call({
Object? sourceId = null,
Object? id = null,
Object? name = null,
Object? albumCount = null,
Object? starred = freezed,
}) {
return _then(_$_Artist(
sourceId: null == sourceId
? _value.sourceId
: sourceId // ignore: cast_nullable_to_non_nullable
as int,
id: null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as String,
name: null == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String,
albumCount: null == albumCount
? _value.albumCount
: albumCount // ignore: cast_nullable_to_non_nullable
as int,
starred: freezed == starred
? _value.starred
: starred // ignore: cast_nullable_to_non_nullable
as DateTime?,
));
}
}
/// @nodoc
class _$_Artist with DiagnosticableTreeMixin implements _Artist {
const _$_Artist(
{required this.sourceId,
required this.id,
required this.name,
required this.albumCount,
this.starred});
@override
final int sourceId;
@override
final String id;
@override
final String name;
@override
final int albumCount;
@override
final DateTime? starred;
@override
String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
return 'Artist(sourceId: $sourceId, id: $id, name: $name, albumCount: $albumCount, starred: $starred)';
}
@override
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
super.debugFillProperties(properties);
properties
..add(DiagnosticsProperty('type', 'Artist'))
..add(DiagnosticsProperty('sourceId', sourceId))
..add(DiagnosticsProperty('id', id))
..add(DiagnosticsProperty('name', name))
..add(DiagnosticsProperty('albumCount', albumCount))
..add(DiagnosticsProperty('starred', starred));
}
@override
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$_Artist &&
(identical(other.sourceId, sourceId) ||
other.sourceId == sourceId) &&
(identical(other.id, id) || other.id == id) &&
(identical(other.name, name) || other.name == name) &&
(identical(other.albumCount, albumCount) ||
other.albumCount == albumCount) &&
(identical(other.starred, starred) || other.starred == starred));
}
@override
int get hashCode =>
Object.hash(runtimeType, sourceId, id, name, albumCount, starred);
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$_ArtistCopyWith<_$_Artist> get copyWith =>
__$$_ArtistCopyWithImpl<_$_Artist>(this, _$identity);
}
abstract class _Artist implements Artist {
const factory _Artist(
{required final int sourceId,
required final String id,
required final String name,
required final int albumCount,
final DateTime? starred}) = _$_Artist;
@override
int get sourceId;
@override
String get id;
@override
String get name;
@override
int get albumCount;
@override
DateTime? get starred;
@override
@JsonKey(ignore: true)
_$$_ArtistCopyWith<_$_Artist> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
mixin _$Album {
int get sourceId => throw _privateConstructorUsedError;
String get id => throw _privateConstructorUsedError;
String get name => throw _privateConstructorUsedError;
String? get artistId => throw _privateConstructorUsedError;
String? get albumArtist => throw _privateConstructorUsedError;
DateTime get created => throw _privateConstructorUsedError;
String? get coverArt => throw _privateConstructorUsedError;
int? get year => throw _privateConstructorUsedError;
DateTime? get starred =>
throw _privateConstructorUsedError; // DateTime? synced,
String? get genre => throw _privateConstructorUsedError;
int get songCount => throw _privateConstructorUsedError;
bool get isDeleted =>
throw _privateConstructorUsedError; // @Default(IListConst([])) IList<Song> songs,
int? get frequentRank => throw _privateConstructorUsedError;
int? get recentRank => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
$AlbumCopyWith<Album> get copyWith => throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $AlbumCopyWith<$Res> {
factory $AlbumCopyWith(Album value, $Res Function(Album) then) =
_$AlbumCopyWithImpl<$Res, Album>;
@useResult
$Res call(
{int sourceId,
String id,
String name,
String? artistId,
String? albumArtist,
DateTime created,
String? coverArt,
int? year,
DateTime? starred,
String? genre,
int songCount,
bool isDeleted,
int? frequentRank,
int? recentRank});
}
/// @nodoc
class _$AlbumCopyWithImpl<$Res, $Val extends Album>
implements $AlbumCopyWith<$Res> {
_$AlbumCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
@pragma('vm:prefer-inline')
@override
$Res call({
Object? sourceId = null,
Object? id = null,
Object? name = null,
Object? artistId = freezed,
Object? albumArtist = freezed,
Object? created = null,
Object? coverArt = freezed,
Object? year = freezed,
Object? starred = freezed,
Object? genre = freezed,
Object? songCount = null,
Object? isDeleted = null,
Object? frequentRank = freezed,
Object? recentRank = freezed,
}) {
return _then(_value.copyWith(
sourceId: null == sourceId
? _value.sourceId
: sourceId // ignore: cast_nullable_to_non_nullable
as int,
id: null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as String,
name: null == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String,
artistId: freezed == artistId
? _value.artistId
: artistId // ignore: cast_nullable_to_non_nullable
as String?,
albumArtist: freezed == albumArtist
? _value.albumArtist
: albumArtist // ignore: cast_nullable_to_non_nullable
as String?,
created: null == created
? _value.created
: created // ignore: cast_nullable_to_non_nullable
as DateTime,
coverArt: freezed == coverArt
? _value.coverArt
: coverArt // ignore: cast_nullable_to_non_nullable
as String?,
year: freezed == year
? _value.year
: year // ignore: cast_nullable_to_non_nullable
as int?,
starred: freezed == starred
? _value.starred
: starred // ignore: cast_nullable_to_non_nullable
as DateTime?,
genre: freezed == genre
? _value.genre
: genre // ignore: cast_nullable_to_non_nullable
as String?,
songCount: null == songCount
? _value.songCount
: songCount // ignore: cast_nullable_to_non_nullable
as int,
isDeleted: null == isDeleted
? _value.isDeleted
: isDeleted // ignore: cast_nullable_to_non_nullable
as bool,
frequentRank: freezed == frequentRank
? _value.frequentRank
: frequentRank // ignore: cast_nullable_to_non_nullable
as int?,
recentRank: freezed == recentRank
? _value.recentRank
: recentRank // ignore: cast_nullable_to_non_nullable
as int?,
) as $Val);
}
}
/// @nodoc
abstract class _$$_AlbumCopyWith<$Res> implements $AlbumCopyWith<$Res> {
factory _$$_AlbumCopyWith(_$_Album value, $Res Function(_$_Album) then) =
__$$_AlbumCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{int sourceId,
String id,
String name,
String? artistId,
String? albumArtist,
DateTime created,
String? coverArt,
int? year,
DateTime? starred,
String? genre,
int songCount,
bool isDeleted,
int? frequentRank,
int? recentRank});
}
/// @nodoc
class __$$_AlbumCopyWithImpl<$Res> extends _$AlbumCopyWithImpl<$Res, _$_Album>
implements _$$_AlbumCopyWith<$Res> {
__$$_AlbumCopyWithImpl(_$_Album _value, $Res Function(_$_Album) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@override
$Res call({
Object? sourceId = null,
Object? id = null,
Object? name = null,
Object? artistId = freezed,
Object? albumArtist = freezed,
Object? created = null,
Object? coverArt = freezed,
Object? year = freezed,
Object? starred = freezed,
Object? genre = freezed,
Object? songCount = null,
Object? isDeleted = null,
Object? frequentRank = freezed,
Object? recentRank = freezed,
}) {
return _then(_$_Album(
sourceId: null == sourceId
? _value.sourceId
: sourceId // ignore: cast_nullable_to_non_nullable
as int,
id: null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as String,
name: null == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String,
artistId: freezed == artistId
? _value.artistId
: artistId // ignore: cast_nullable_to_non_nullable
as String?,
albumArtist: freezed == albumArtist
? _value.albumArtist
: albumArtist // ignore: cast_nullable_to_non_nullable
as String?,
created: null == created
? _value.created
: created // ignore: cast_nullable_to_non_nullable
as DateTime,
coverArt: freezed == coverArt
? _value.coverArt
: coverArt // ignore: cast_nullable_to_non_nullable
as String?,
year: freezed == year
? _value.year
: year // ignore: cast_nullable_to_non_nullable
as int?,
starred: freezed == starred
? _value.starred
: starred // ignore: cast_nullable_to_non_nullable
as DateTime?,
genre: freezed == genre
? _value.genre
: genre // ignore: cast_nullable_to_non_nullable
as String?,
songCount: null == songCount
? _value.songCount
: songCount // ignore: cast_nullable_to_non_nullable
as int,
isDeleted: null == isDeleted
? _value.isDeleted
: isDeleted // ignore: cast_nullable_to_non_nullable
as bool,
frequentRank: freezed == frequentRank
? _value.frequentRank
: frequentRank // ignore: cast_nullable_to_non_nullable
as int?,
recentRank: freezed == recentRank
? _value.recentRank
: recentRank // ignore: cast_nullable_to_non_nullable
as int?,
));
}
}
/// @nodoc
class _$_Album with DiagnosticableTreeMixin implements _Album {
const _$_Album(
{required this.sourceId,
required this.id,
required this.name,
this.artistId,
this.albumArtist,
required this.created,
this.coverArt,
this.year,
this.starred,
this.genre,
required this.songCount,
this.isDeleted = false,
this.frequentRank,
this.recentRank});
@override
final int sourceId;
@override
final String id;
@override
final String name;
@override
final String? artistId;
@override
final String? albumArtist;
@override
final DateTime created;
@override
final String? coverArt;
@override
final int? year;
@override
final DateTime? starred;
// DateTime? synced,
@override
final String? genre;
@override
final int songCount;
@override
@JsonKey()
final bool isDeleted;
// @Default(IListConst([])) IList<Song> songs,
@override
final int? frequentRank;
@override
final int? recentRank;
@override
String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
return 'Album(sourceId: $sourceId, id: $id, name: $name, artistId: $artistId, albumArtist: $albumArtist, created: $created, coverArt: $coverArt, year: $year, starred: $starred, genre: $genre, songCount: $songCount, isDeleted: $isDeleted, frequentRank: $frequentRank, recentRank: $recentRank)';
}
@override
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
super.debugFillProperties(properties);
properties
..add(DiagnosticsProperty('type', 'Album'))
..add(DiagnosticsProperty('sourceId', sourceId))
..add(DiagnosticsProperty('id', id))
..add(DiagnosticsProperty('name', name))
..add(DiagnosticsProperty('artistId', artistId))
..add(DiagnosticsProperty('albumArtist', albumArtist))
..add(DiagnosticsProperty('created', created))
..add(DiagnosticsProperty('coverArt', coverArt))
..add(DiagnosticsProperty('year', year))
..add(DiagnosticsProperty('starred', starred))
..add(DiagnosticsProperty('genre', genre))
..add(DiagnosticsProperty('songCount', songCount))
..add(DiagnosticsProperty('isDeleted', isDeleted))
..add(DiagnosticsProperty('frequentRank', frequentRank))
..add(DiagnosticsProperty('recentRank', recentRank));
}
@override
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$_Album &&
(identical(other.sourceId, sourceId) ||
other.sourceId == sourceId) &&
(identical(other.id, id) || other.id == id) &&
(identical(other.name, name) || other.name == name) &&
(identical(other.artistId, artistId) ||
other.artistId == artistId) &&
(identical(other.albumArtist, albumArtist) ||
other.albumArtist == albumArtist) &&
(identical(other.created, created) || other.created == created) &&
(identical(other.coverArt, coverArt) ||
other.coverArt == coverArt) &&
(identical(other.year, year) || other.year == year) &&
(identical(other.starred, starred) || other.starred == starred) &&
(identical(other.genre, genre) || other.genre == genre) &&
(identical(other.songCount, songCount) ||
other.songCount == songCount) &&
(identical(other.isDeleted, isDeleted) ||
other.isDeleted == isDeleted) &&
(identical(other.frequentRank, frequentRank) ||
other.frequentRank == frequentRank) &&
(identical(other.recentRank, recentRank) ||
other.recentRank == recentRank));
}
@override
int get hashCode => Object.hash(
runtimeType,
sourceId,
id,
name,
artistId,
albumArtist,
created,
coverArt,
year,
starred,
genre,
songCount,
isDeleted,
frequentRank,
recentRank);
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$_AlbumCopyWith<_$_Album> get copyWith =>
__$$_AlbumCopyWithImpl<_$_Album>(this, _$identity);
}
abstract class _Album implements Album {
const factory _Album(
{required final int sourceId,
required final String id,
required final String name,
final String? artistId,
final String? albumArtist,
required final DateTime created,
final String? coverArt,
final int? year,
final DateTime? starred,
final String? genre,
required final int songCount,
final bool isDeleted,
final int? frequentRank,
final int? recentRank}) = _$_Album;
@override
int get sourceId;
@override
String get id;
@override
String get name;
@override
String? get artistId;
@override
String? get albumArtist;
@override
DateTime get created;
@override
String? get coverArt;
@override
int? get year;
@override
DateTime? get starred;
@override // DateTime? synced,
String? get genre;
@override
int get songCount;
@override
bool get isDeleted;
@override // @Default(IListConst([])) IList<Song> songs,
int? get frequentRank;
@override
int? get recentRank;
@override
@JsonKey(ignore: true)
_$$_AlbumCopyWith<_$_Album> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
mixin _$Playlist {
int get sourceId => throw _privateConstructorUsedError;
String get id => throw _privateConstructorUsedError;
String get name => throw _privateConstructorUsedError;
String? get comment => throw _privateConstructorUsedError;
String? get coverArt => throw _privateConstructorUsedError;
int get songCount => throw _privateConstructorUsedError;
DateTime get created => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
$PlaylistCopyWith<Playlist> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $PlaylistCopyWith<$Res> {
factory $PlaylistCopyWith(Playlist value, $Res Function(Playlist) then) =
_$PlaylistCopyWithImpl<$Res, Playlist>;
@useResult
$Res call(
{int sourceId,
String id,
String name,
String? comment,
String? coverArt,
int songCount,
DateTime created});
}
/// @nodoc
class _$PlaylistCopyWithImpl<$Res, $Val extends Playlist>
implements $PlaylistCopyWith<$Res> {
_$PlaylistCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
@pragma('vm:prefer-inline')
@override
$Res call({
Object? sourceId = null,
Object? id = null,
Object? name = null,
Object? comment = freezed,
Object? coverArt = freezed,
Object? songCount = null,
Object? created = null,
}) {
return _then(_value.copyWith(
sourceId: null == sourceId
? _value.sourceId
: sourceId // ignore: cast_nullable_to_non_nullable
as int,
id: null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as String,
name: null == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String,
comment: freezed == comment
? _value.comment
: comment // ignore: cast_nullable_to_non_nullable
as String?,
coverArt: freezed == coverArt
? _value.coverArt
: coverArt // ignore: cast_nullable_to_non_nullable
as String?,
songCount: null == songCount
? _value.songCount
: songCount // ignore: cast_nullable_to_non_nullable
as int,
created: null == created
? _value.created
: created // ignore: cast_nullable_to_non_nullable
as DateTime,
) as $Val);
}
}
/// @nodoc
abstract class _$$_PlaylistCopyWith<$Res> implements $PlaylistCopyWith<$Res> {
factory _$$_PlaylistCopyWith(
_$_Playlist value, $Res Function(_$_Playlist) then) =
__$$_PlaylistCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{int sourceId,
String id,
String name,
String? comment,
String? coverArt,
int songCount,
DateTime created});
}
/// @nodoc
class __$$_PlaylistCopyWithImpl<$Res>
extends _$PlaylistCopyWithImpl<$Res, _$_Playlist>
implements _$$_PlaylistCopyWith<$Res> {
__$$_PlaylistCopyWithImpl(
_$_Playlist _value, $Res Function(_$_Playlist) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@override
$Res call({
Object? sourceId = null,
Object? id = null,
Object? name = null,
Object? comment = freezed,
Object? coverArt = freezed,
Object? songCount = null,
Object? created = null,
}) {
return _then(_$_Playlist(
sourceId: null == sourceId
? _value.sourceId
: sourceId // ignore: cast_nullable_to_non_nullable
as int,
id: null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as String,
name: null == name
? _value.name
: name // ignore: cast_nullable_to_non_nullable
as String,
comment: freezed == comment
? _value.comment
: comment // ignore: cast_nullable_to_non_nullable
as String?,
coverArt: freezed == coverArt
? _value.coverArt
: coverArt // ignore: cast_nullable_to_non_nullable
as String?,
songCount: null == songCount
? _value.songCount
: songCount // ignore: cast_nullable_to_non_nullable
as int,
created: null == created
? _value.created
: created // ignore: cast_nullable_to_non_nullable
as DateTime,
));
}
}
/// @nodoc
class _$_Playlist with DiagnosticableTreeMixin implements _Playlist {
const _$_Playlist(
{required this.sourceId,
required this.id,
required this.name,
this.comment,
this.coverArt,
required this.songCount,
required this.created});
@override
final int sourceId;
@override
final String id;
@override
final String name;
@override
final String? comment;
@override
final String? coverArt;
@override
final int songCount;
@override
final DateTime created;
@override
String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
return 'Playlist(sourceId: $sourceId, id: $id, name: $name, comment: $comment, coverArt: $coverArt, songCount: $songCount, created: $created)';
}
@override
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
super.debugFillProperties(properties);
properties
..add(DiagnosticsProperty('type', 'Playlist'))
..add(DiagnosticsProperty('sourceId', sourceId))
..add(DiagnosticsProperty('id', id))
..add(DiagnosticsProperty('name', name))
..add(DiagnosticsProperty('comment', comment))
..add(DiagnosticsProperty('coverArt', coverArt))
..add(DiagnosticsProperty('songCount', songCount))
..add(DiagnosticsProperty('created', created));
}
@override
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$_Playlist &&
(identical(other.sourceId, sourceId) ||
other.sourceId == sourceId) &&
(identical(other.id, id) || other.id == id) &&
(identical(other.name, name) || other.name == name) &&
(identical(other.comment, comment) || other.comment == comment) &&
(identical(other.coverArt, coverArt) ||
other.coverArt == coverArt) &&
(identical(other.songCount, songCount) ||
other.songCount == songCount) &&
(identical(other.created, created) || other.created == created));
}
@override
int get hashCode => Object.hash(
runtimeType, sourceId, id, name, comment, coverArt, songCount, created);
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$_PlaylistCopyWith<_$_Playlist> get copyWith =>
__$$_PlaylistCopyWithImpl<_$_Playlist>(this, _$identity);
}
abstract class _Playlist implements Playlist {
const factory _Playlist(
{required final int sourceId,
required final String id,
required final String name,
final String? comment,
final String? coverArt,
required final int songCount,
required final DateTime created}) = _$_Playlist;
@override
int get sourceId;
@override
String get id;
@override
String get name;
@override
String? get comment;
@override
String? get coverArt;
@override
int get songCount;
@override
DateTime get created;
@override
@JsonKey(ignore: true)
_$$_PlaylistCopyWith<_$_Playlist> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
mixin _$Song {
int get sourceId => throw _privateConstructorUsedError;
String get id => throw _privateConstructorUsedError;
String? get albumId => throw _privateConstructorUsedError;
String? get artistId => throw _privateConstructorUsedError;
String get title => throw _privateConstructorUsedError;
String? get artist => throw _privateConstructorUsedError;
String? get album => throw _privateConstructorUsedError;
Duration? get duration => throw _privateConstructorUsedError;
int? get track => throw _privateConstructorUsedError;
int? get disc => throw _privateConstructorUsedError;
DateTime? get starred => throw _privateConstructorUsedError;
String? get genre => throw _privateConstructorUsedError;
String? get downloadTaskId => throw _privateConstructorUsedError;
String? get downloadFilePath => throw _privateConstructorUsedError;
bool get isDeleted => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
$SongCopyWith<Song> get copyWith => throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $SongCopyWith<$Res> {
factory $SongCopyWith(Song value, $Res Function(Song) then) =
_$SongCopyWithImpl<$Res, Song>;
@useResult
$Res call(
{int sourceId,
String id,
String? albumId,
String? artistId,
String title,
String? artist,
String? album,
Duration? duration,
int? track,
int? disc,
DateTime? starred,
String? genre,
String? downloadTaskId,
String? downloadFilePath,
bool isDeleted});
}
/// @nodoc
class _$SongCopyWithImpl<$Res, $Val extends Song>
implements $SongCopyWith<$Res> {
_$SongCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
@pragma('vm:prefer-inline')
@override
$Res call({
Object? sourceId = null,
Object? id = null,
Object? albumId = freezed,
Object? artistId = freezed,
Object? title = null,
Object? artist = freezed,
Object? album = freezed,
Object? duration = freezed,
Object? track = freezed,
Object? disc = freezed,
Object? starred = freezed,
Object? genre = freezed,
Object? downloadTaskId = freezed,
Object? downloadFilePath = freezed,
Object? isDeleted = null,
}) {
return _then(_value.copyWith(
sourceId: null == sourceId
? _value.sourceId
: sourceId // ignore: cast_nullable_to_non_nullable
as int,
id: null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as String,
albumId: freezed == albumId
? _value.albumId
: albumId // ignore: cast_nullable_to_non_nullable
as String?,
artistId: freezed == artistId
? _value.artistId
: artistId // ignore: cast_nullable_to_non_nullable
as String?,
title: null == title
? _value.title
: title // ignore: cast_nullable_to_non_nullable
as String,
artist: freezed == artist
? _value.artist
: artist // ignore: cast_nullable_to_non_nullable
as String?,
album: freezed == album
? _value.album
: album // ignore: cast_nullable_to_non_nullable
as String?,
duration: freezed == duration
? _value.duration
: duration // ignore: cast_nullable_to_non_nullable
as Duration?,
track: freezed == track
? _value.track
: track // ignore: cast_nullable_to_non_nullable
as int?,
disc: freezed == disc
? _value.disc
: disc // ignore: cast_nullable_to_non_nullable
as int?,
starred: freezed == starred
? _value.starred
: starred // ignore: cast_nullable_to_non_nullable
as DateTime?,
genre: freezed == genre
? _value.genre
: genre // ignore: cast_nullable_to_non_nullable
as String?,
downloadTaskId: freezed == downloadTaskId
? _value.downloadTaskId
: downloadTaskId // ignore: cast_nullable_to_non_nullable
as String?,
downloadFilePath: freezed == downloadFilePath
? _value.downloadFilePath
: downloadFilePath // ignore: cast_nullable_to_non_nullable
as String?,
isDeleted: null == isDeleted
? _value.isDeleted
: isDeleted // ignore: cast_nullable_to_non_nullable
as bool,
) as $Val);
}
}
/// @nodoc
abstract class _$$_SongCopyWith<$Res> implements $SongCopyWith<$Res> {
factory _$$_SongCopyWith(_$_Song value, $Res Function(_$_Song) then) =
__$$_SongCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{int sourceId,
String id,
String? albumId,
String? artistId,
String title,
String? artist,
String? album,
Duration? duration,
int? track,
int? disc,
DateTime? starred,
String? genre,
String? downloadTaskId,
String? downloadFilePath,
bool isDeleted});
}
/// @nodoc
class __$$_SongCopyWithImpl<$Res> extends _$SongCopyWithImpl<$Res, _$_Song>
implements _$$_SongCopyWith<$Res> {
__$$_SongCopyWithImpl(_$_Song _value, $Res Function(_$_Song) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@override
$Res call({
Object? sourceId = null,
Object? id = null,
Object? albumId = freezed,
Object? artistId = freezed,
Object? title = null,
Object? artist = freezed,
Object? album = freezed,
Object? duration = freezed,
Object? track = freezed,
Object? disc = freezed,
Object? starred = freezed,
Object? genre = freezed,
Object? downloadTaskId = freezed,
Object? downloadFilePath = freezed,
Object? isDeleted = null,
}) {
return _then(_$_Song(
sourceId: null == sourceId
? _value.sourceId
: sourceId // ignore: cast_nullable_to_non_nullable
as int,
id: null == id
? _value.id
: id // ignore: cast_nullable_to_non_nullable
as String,
albumId: freezed == albumId
? _value.albumId
: albumId // ignore: cast_nullable_to_non_nullable
as String?,
artistId: freezed == artistId
? _value.artistId
: artistId // ignore: cast_nullable_to_non_nullable
as String?,
title: null == title
? _value.title
: title // ignore: cast_nullable_to_non_nullable
as String,
artist: freezed == artist
? _value.artist
: artist // ignore: cast_nullable_to_non_nullable
as String?,
album: freezed == album
? _value.album
: album // ignore: cast_nullable_to_non_nullable
as String?,
duration: freezed == duration
? _value.duration
: duration // ignore: cast_nullable_to_non_nullable
as Duration?,
track: freezed == track
? _value.track
: track // ignore: cast_nullable_to_non_nullable
as int?,
disc: freezed == disc
? _value.disc
: disc // ignore: cast_nullable_to_non_nullable
as int?,
starred: freezed == starred
? _value.starred
: starred // ignore: cast_nullable_to_non_nullable
as DateTime?,
genre: freezed == genre
? _value.genre
: genre // ignore: cast_nullable_to_non_nullable
as String?,
downloadTaskId: freezed == downloadTaskId
? _value.downloadTaskId
: downloadTaskId // ignore: cast_nullable_to_non_nullable
as String?,
downloadFilePath: freezed == downloadFilePath
? _value.downloadFilePath
: downloadFilePath // ignore: cast_nullable_to_non_nullable
as String?,
isDeleted: null == isDeleted
? _value.isDeleted
: isDeleted // ignore: cast_nullable_to_non_nullable
as bool,
));
}
}
/// @nodoc
class _$_Song with DiagnosticableTreeMixin implements _Song {
const _$_Song(
{required this.sourceId,
required this.id,
this.albumId,
this.artistId,
required this.title,
this.artist,
this.album,
this.duration,
this.track,
this.disc,
this.starred,
this.genre,
this.downloadTaskId,
this.downloadFilePath,
this.isDeleted = false});
@override
final int sourceId;
@override
final String id;
@override
final String? albumId;
@override
final String? artistId;
@override
final String title;
@override
final String? artist;
@override
final String? album;
@override
final Duration? duration;
@override
final int? track;
@override
final int? disc;
@override
final DateTime? starred;
@override
final String? genre;
@override
final String? downloadTaskId;
@override
final String? downloadFilePath;
@override
@JsonKey()
final bool isDeleted;
@override
String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
return 'Song(sourceId: $sourceId, id: $id, albumId: $albumId, artistId: $artistId, title: $title, artist: $artist, album: $album, duration: $duration, track: $track, disc: $disc, starred: $starred, genre: $genre, downloadTaskId: $downloadTaskId, downloadFilePath: $downloadFilePath, isDeleted: $isDeleted)';
}
@override
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
super.debugFillProperties(properties);
properties
..add(DiagnosticsProperty('type', 'Song'))
..add(DiagnosticsProperty('sourceId', sourceId))
..add(DiagnosticsProperty('id', id))
..add(DiagnosticsProperty('albumId', albumId))
..add(DiagnosticsProperty('artistId', artistId))
..add(DiagnosticsProperty('title', title))
..add(DiagnosticsProperty('artist', artist))
..add(DiagnosticsProperty('album', album))
..add(DiagnosticsProperty('duration', duration))
..add(DiagnosticsProperty('track', track))
..add(DiagnosticsProperty('disc', disc))
..add(DiagnosticsProperty('starred', starred))
..add(DiagnosticsProperty('genre', genre))
..add(DiagnosticsProperty('downloadTaskId', downloadTaskId))
..add(DiagnosticsProperty('downloadFilePath', downloadFilePath))
..add(DiagnosticsProperty('isDeleted', isDeleted));
}
@override
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$_Song &&
(identical(other.sourceId, sourceId) ||
other.sourceId == sourceId) &&
(identical(other.id, id) || other.id == id) &&
(identical(other.albumId, albumId) || other.albumId == albumId) &&
(identical(other.artistId, artistId) ||
other.artistId == artistId) &&
(identical(other.title, title) || other.title == title) &&
(identical(other.artist, artist) || other.artist == artist) &&
(identical(other.album, album) || other.album == album) &&
(identical(other.duration, duration) ||
other.duration == duration) &&
(identical(other.track, track) || other.track == track) &&
(identical(other.disc, disc) || other.disc == disc) &&
(identical(other.starred, starred) || other.starred == starred) &&
(identical(other.genre, genre) || other.genre == genre) &&
(identical(other.downloadTaskId, downloadTaskId) ||
other.downloadTaskId == downloadTaskId) &&
(identical(other.downloadFilePath, downloadFilePath) ||
other.downloadFilePath == downloadFilePath) &&
(identical(other.isDeleted, isDeleted) ||
other.isDeleted == isDeleted));
}
@override
int get hashCode => Object.hash(
runtimeType,
sourceId,
id,
albumId,
artistId,
title,
artist,
album,
duration,
track,
disc,
starred,
genre,
downloadTaskId,
downloadFilePath,
isDeleted);
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$_SongCopyWith<_$_Song> get copyWith =>
__$$_SongCopyWithImpl<_$_Song>(this, _$identity);
}
abstract class _Song implements Song {
const factory _Song(
{required final int sourceId,
required final String id,
final String? albumId,
final String? artistId,
required final String title,
final String? artist,
final String? album,
final Duration? duration,
final int? track,
final int? disc,
final DateTime? starred,
final String? genre,
final String? downloadTaskId,
final String? downloadFilePath,
final bool isDeleted}) = _$_Song;
@override
int get sourceId;
@override
String get id;
@override
String? get albumId;
@override
String? get artistId;
@override
String get title;
@override
String? get artist;
@override
String? get album;
@override
Duration? get duration;
@override
int? get track;
@override
int? get disc;
@override
DateTime? get starred;
@override
String? get genre;
@override
String? get downloadTaskId;
@override
String? get downloadFilePath;
@override
bool get isDeleted;
@override
@JsonKey(ignore: true)
_$$_SongCopyWith<_$_Song> get copyWith => throw _privateConstructorUsedError;
}
/// @nodoc
mixin _$SearchResults {
String? get query => throw _privateConstructorUsedError;
IList<Song> get songs => throw _privateConstructorUsedError;
IList<Album> get albums => throw _privateConstructorUsedError;
IList<Artist> get artists => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
$SearchResultsCopyWith<SearchResults> get copyWith =>
throw _privateConstructorUsedError;
}
/// @nodoc
abstract class $SearchResultsCopyWith<$Res> {
factory $SearchResultsCopyWith(
SearchResults value, $Res Function(SearchResults) then) =
_$SearchResultsCopyWithImpl<$Res, SearchResults>;
@useResult
$Res call(
{String? query,
IList<Song> songs,
IList<Album> albums,
IList<Artist> artists});
}
/// @nodoc
class _$SearchResultsCopyWithImpl<$Res, $Val extends SearchResults>
implements $SearchResultsCopyWith<$Res> {
_$SearchResultsCopyWithImpl(this._value, this._then);
// ignore: unused_field
final $Val _value;
// ignore: unused_field
final $Res Function($Val) _then;
@pragma('vm:prefer-inline')
@override
$Res call({
Object? query = freezed,
Object? songs = null,
Object? albums = null,
Object? artists = null,
}) {
return _then(_value.copyWith(
query: freezed == query
? _value.query
: query // ignore: cast_nullable_to_non_nullable
as String?,
songs: null == songs
? _value.songs
: songs // ignore: cast_nullable_to_non_nullable
as IList<Song>,
albums: null == albums
? _value.albums
: albums // ignore: cast_nullable_to_non_nullable
as IList<Album>,
artists: null == artists
? _value.artists
: artists // ignore: cast_nullable_to_non_nullable
as IList<Artist>,
) as $Val);
}
}
/// @nodoc
abstract class _$$_SearchResultsCopyWith<$Res>
implements $SearchResultsCopyWith<$Res> {
factory _$$_SearchResultsCopyWith(
_$_SearchResults value, $Res Function(_$_SearchResults) then) =
__$$_SearchResultsCopyWithImpl<$Res>;
@override
@useResult
$Res call(
{String? query,
IList<Song> songs,
IList<Album> albums,
IList<Artist> artists});
}
/// @nodoc
class __$$_SearchResultsCopyWithImpl<$Res>
extends _$SearchResultsCopyWithImpl<$Res, _$_SearchResults>
implements _$$_SearchResultsCopyWith<$Res> {
__$$_SearchResultsCopyWithImpl(
_$_SearchResults _value, $Res Function(_$_SearchResults) _then)
: super(_value, _then);
@pragma('vm:prefer-inline')
@override
$Res call({
Object? query = freezed,
Object? songs = null,
Object? albums = null,
Object? artists = null,
}) {
return _then(_$_SearchResults(
query: freezed == query
? _value.query
: query // ignore: cast_nullable_to_non_nullable
as String?,
songs: null == songs
? _value.songs
: songs // ignore: cast_nullable_to_non_nullable
as IList<Song>,
albums: null == albums
? _value.albums
: albums // ignore: cast_nullable_to_non_nullable
as IList<Album>,
artists: null == artists
? _value.artists
: artists // ignore: cast_nullable_to_non_nullable
as IList<Artist>,
));
}
}
/// @nodoc
class _$_SearchResults with DiagnosticableTreeMixin implements _SearchResults {
const _$_SearchResults(
{this.query,
this.songs = const IListConst([]),
this.albums = const IListConst([]),
this.artists = const IListConst([])});
@override
final String? query;
@override
@JsonKey()
final IList<Song> songs;
@override
@JsonKey()
final IList<Album> albums;
@override
@JsonKey()
final IList<Artist> artists;
@override
String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
return 'SearchResults(query: $query, songs: $songs, albums: $albums, artists: $artists)';
}
@override
void debugFillProperties(DiagnosticPropertiesBuilder properties) {
super.debugFillProperties(properties);
properties
..add(DiagnosticsProperty('type', 'SearchResults'))
..add(DiagnosticsProperty('query', query))
..add(DiagnosticsProperty('songs', songs))
..add(DiagnosticsProperty('albums', albums))
..add(DiagnosticsProperty('artists', artists));
}
@override
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$_SearchResults &&
(identical(other.query, query) || other.query == query) &&
const DeepCollectionEquality().equals(other.songs, songs) &&
const DeepCollectionEquality().equals(other.albums, albums) &&
const DeepCollectionEquality().equals(other.artists, artists));
}
@override
int get hashCode => Object.hash(
runtimeType,
query,
const DeepCollectionEquality().hash(songs),
const DeepCollectionEquality().hash(albums),
const DeepCollectionEquality().hash(artists));
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$_SearchResultsCopyWith<_$_SearchResults> get copyWith =>
__$$_SearchResultsCopyWithImpl<_$_SearchResults>(this, _$identity);
}
abstract class _SearchResults implements SearchResults {
const factory _SearchResults(
{final String? query,
final IList<Song> songs,
final IList<Album> albums,
final IList<Artist> artists}) = _$_SearchResults;
@override
String? get query;
@override
IList<Song> get songs;
@override
IList<Album> get albums;
@override
IList<Artist> get artists;
@override
@JsonKey(ignore: true)
_$$_SearchResultsCopyWith<_$_SearchResults> get copyWith =>
throw _privateConstructorUsedError;
}