mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-12 23:45:18 +00:00
3984 lines
130 KiB
Dart
3984 lines
130 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 'metadata.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#adding-getters-and-methods-to-our-models');
|
|
|
|
SpotubeFullAlbumObject _$SpotubeFullAlbumObjectFromJson(
|
|
Map<String, dynamic> json) {
|
|
return _SpotubeFullAlbumObject.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$SpotubeFullAlbumObject {
|
|
String get id => throw _privateConstructorUsedError;
|
|
String get name => throw _privateConstructorUsedError;
|
|
List<SpotubeSimpleArtistObject> get artists =>
|
|
throw _privateConstructorUsedError;
|
|
List<SpotubeImageObject> get images => throw _privateConstructorUsedError;
|
|
String get releaseDate => throw _privateConstructorUsedError;
|
|
String get externalUri => throw _privateConstructorUsedError;
|
|
int get totalTracks => throw _privateConstructorUsedError;
|
|
SpotubeAlbumType get albumType => throw _privateConstructorUsedError;
|
|
String? get recordLabel => throw _privateConstructorUsedError;
|
|
List<String>? get genres => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this SpotubeFullAlbumObject to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of SpotubeFullAlbumObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$SpotubeFullAlbumObjectCopyWith<SpotubeFullAlbumObject> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $SpotubeFullAlbumObjectCopyWith<$Res> {
|
|
factory $SpotubeFullAlbumObjectCopyWith(SpotubeFullAlbumObject value,
|
|
$Res Function(SpotubeFullAlbumObject) then) =
|
|
_$SpotubeFullAlbumObjectCopyWithImpl<$Res, SpotubeFullAlbumObject>;
|
|
@useResult
|
|
$Res call(
|
|
{String id,
|
|
String name,
|
|
List<SpotubeSimpleArtistObject> artists,
|
|
List<SpotubeImageObject> images,
|
|
String releaseDate,
|
|
String externalUri,
|
|
int totalTracks,
|
|
SpotubeAlbumType albumType,
|
|
String? recordLabel,
|
|
List<String>? genres});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$SpotubeFullAlbumObjectCopyWithImpl<$Res,
|
|
$Val extends SpotubeFullAlbumObject>
|
|
implements $SpotubeFullAlbumObjectCopyWith<$Res> {
|
|
_$SpotubeFullAlbumObjectCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of SpotubeFullAlbumObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? name = null,
|
|
Object? artists = null,
|
|
Object? images = null,
|
|
Object? releaseDate = null,
|
|
Object? externalUri = null,
|
|
Object? totalTracks = null,
|
|
Object? albumType = null,
|
|
Object? recordLabel = freezed,
|
|
Object? genres = freezed,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
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,
|
|
artists: null == artists
|
|
? _value.artists
|
|
: artists // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeSimpleArtistObject>,
|
|
images: null == images
|
|
? _value.images
|
|
: images // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeImageObject>,
|
|
releaseDate: null == releaseDate
|
|
? _value.releaseDate
|
|
: releaseDate // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
externalUri: null == externalUri
|
|
? _value.externalUri
|
|
: externalUri // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
totalTracks: null == totalTracks
|
|
? _value.totalTracks
|
|
: totalTracks // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
albumType: null == albumType
|
|
? _value.albumType
|
|
: albumType // ignore: cast_nullable_to_non_nullable
|
|
as SpotubeAlbumType,
|
|
recordLabel: freezed == recordLabel
|
|
? _value.recordLabel
|
|
: recordLabel // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
genres: freezed == genres
|
|
? _value.genres
|
|
: genres // ignore: cast_nullable_to_non_nullable
|
|
as List<String>?,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$SpotubeFullAlbumObjectImplCopyWith<$Res>
|
|
implements $SpotubeFullAlbumObjectCopyWith<$Res> {
|
|
factory _$$SpotubeFullAlbumObjectImplCopyWith(
|
|
_$SpotubeFullAlbumObjectImpl value,
|
|
$Res Function(_$SpotubeFullAlbumObjectImpl) then) =
|
|
__$$SpotubeFullAlbumObjectImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{String id,
|
|
String name,
|
|
List<SpotubeSimpleArtistObject> artists,
|
|
List<SpotubeImageObject> images,
|
|
String releaseDate,
|
|
String externalUri,
|
|
int totalTracks,
|
|
SpotubeAlbumType albumType,
|
|
String? recordLabel,
|
|
List<String>? genres});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$SpotubeFullAlbumObjectImplCopyWithImpl<$Res>
|
|
extends _$SpotubeFullAlbumObjectCopyWithImpl<$Res,
|
|
_$SpotubeFullAlbumObjectImpl>
|
|
implements _$$SpotubeFullAlbumObjectImplCopyWith<$Res> {
|
|
__$$SpotubeFullAlbumObjectImplCopyWithImpl(
|
|
_$SpotubeFullAlbumObjectImpl _value,
|
|
$Res Function(_$SpotubeFullAlbumObjectImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of SpotubeFullAlbumObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? name = null,
|
|
Object? artists = null,
|
|
Object? images = null,
|
|
Object? releaseDate = null,
|
|
Object? externalUri = null,
|
|
Object? totalTracks = null,
|
|
Object? albumType = null,
|
|
Object? recordLabel = freezed,
|
|
Object? genres = freezed,
|
|
}) {
|
|
return _then(_$SpotubeFullAlbumObjectImpl(
|
|
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,
|
|
artists: null == artists
|
|
? _value._artists
|
|
: artists // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeSimpleArtistObject>,
|
|
images: null == images
|
|
? _value._images
|
|
: images // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeImageObject>,
|
|
releaseDate: null == releaseDate
|
|
? _value.releaseDate
|
|
: releaseDate // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
externalUri: null == externalUri
|
|
? _value.externalUri
|
|
: externalUri // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
totalTracks: null == totalTracks
|
|
? _value.totalTracks
|
|
: totalTracks // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
albumType: null == albumType
|
|
? _value.albumType
|
|
: albumType // ignore: cast_nullable_to_non_nullable
|
|
as SpotubeAlbumType,
|
|
recordLabel: freezed == recordLabel
|
|
? _value.recordLabel
|
|
: recordLabel // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
genres: freezed == genres
|
|
? _value._genres
|
|
: genres // ignore: cast_nullable_to_non_nullable
|
|
as List<String>?,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$SpotubeFullAlbumObjectImpl implements _SpotubeFullAlbumObject {
|
|
_$SpotubeFullAlbumObjectImpl(
|
|
{required this.id,
|
|
required this.name,
|
|
required final List<SpotubeSimpleArtistObject> artists,
|
|
final List<SpotubeImageObject> images = const [],
|
|
required this.releaseDate,
|
|
required this.externalUri,
|
|
required this.totalTracks,
|
|
required this.albumType,
|
|
this.recordLabel,
|
|
final List<String>? genres})
|
|
: _artists = artists,
|
|
_images = images,
|
|
_genres = genres;
|
|
|
|
factory _$SpotubeFullAlbumObjectImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$SpotubeFullAlbumObjectImplFromJson(json);
|
|
|
|
@override
|
|
final String id;
|
|
@override
|
|
final String name;
|
|
final List<SpotubeSimpleArtistObject> _artists;
|
|
@override
|
|
List<SpotubeSimpleArtistObject> get artists {
|
|
if (_artists is EqualUnmodifiableListView) return _artists;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_artists);
|
|
}
|
|
|
|
final List<SpotubeImageObject> _images;
|
|
@override
|
|
@JsonKey()
|
|
List<SpotubeImageObject> get images {
|
|
if (_images is EqualUnmodifiableListView) return _images;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_images);
|
|
}
|
|
|
|
@override
|
|
final String releaseDate;
|
|
@override
|
|
final String externalUri;
|
|
@override
|
|
final int totalTracks;
|
|
@override
|
|
final SpotubeAlbumType albumType;
|
|
@override
|
|
final String? recordLabel;
|
|
final List<String>? _genres;
|
|
@override
|
|
List<String>? get genres {
|
|
final value = _genres;
|
|
if (value == null) return null;
|
|
if (_genres is EqualUnmodifiableListView) return _genres;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(value);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SpotubeFullAlbumObject(id: $id, name: $name, artists: $artists, images: $images, releaseDate: $releaseDate, externalUri: $externalUri, totalTracks: $totalTracks, albumType: $albumType, recordLabel: $recordLabel, genres: $genres)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$SpotubeFullAlbumObjectImpl &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
const DeepCollectionEquality().equals(other._artists, _artists) &&
|
|
const DeepCollectionEquality().equals(other._images, _images) &&
|
|
(identical(other.releaseDate, releaseDate) ||
|
|
other.releaseDate == releaseDate) &&
|
|
(identical(other.externalUri, externalUri) ||
|
|
other.externalUri == externalUri) &&
|
|
(identical(other.totalTracks, totalTracks) ||
|
|
other.totalTracks == totalTracks) &&
|
|
(identical(other.albumType, albumType) ||
|
|
other.albumType == albumType) &&
|
|
(identical(other.recordLabel, recordLabel) ||
|
|
other.recordLabel == recordLabel) &&
|
|
const DeepCollectionEquality().equals(other._genres, _genres));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
id,
|
|
name,
|
|
const DeepCollectionEquality().hash(_artists),
|
|
const DeepCollectionEquality().hash(_images),
|
|
releaseDate,
|
|
externalUri,
|
|
totalTracks,
|
|
albumType,
|
|
recordLabel,
|
|
const DeepCollectionEquality().hash(_genres));
|
|
|
|
/// Create a copy of SpotubeFullAlbumObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$SpotubeFullAlbumObjectImplCopyWith<_$SpotubeFullAlbumObjectImpl>
|
|
get copyWith => __$$SpotubeFullAlbumObjectImplCopyWithImpl<
|
|
_$SpotubeFullAlbumObjectImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$SpotubeFullAlbumObjectImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _SpotubeFullAlbumObject implements SpotubeFullAlbumObject {
|
|
factory _SpotubeFullAlbumObject(
|
|
{required final String id,
|
|
required final String name,
|
|
required final List<SpotubeSimpleArtistObject> artists,
|
|
final List<SpotubeImageObject> images,
|
|
required final String releaseDate,
|
|
required final String externalUri,
|
|
required final int totalTracks,
|
|
required final SpotubeAlbumType albumType,
|
|
final String? recordLabel,
|
|
final List<String>? genres}) = _$SpotubeFullAlbumObjectImpl;
|
|
|
|
factory _SpotubeFullAlbumObject.fromJson(Map<String, dynamic> json) =
|
|
_$SpotubeFullAlbumObjectImpl.fromJson;
|
|
|
|
@override
|
|
String get id;
|
|
@override
|
|
String get name;
|
|
@override
|
|
List<SpotubeSimpleArtistObject> get artists;
|
|
@override
|
|
List<SpotubeImageObject> get images;
|
|
@override
|
|
String get releaseDate;
|
|
@override
|
|
String get externalUri;
|
|
@override
|
|
int get totalTracks;
|
|
@override
|
|
SpotubeAlbumType get albumType;
|
|
@override
|
|
String? get recordLabel;
|
|
@override
|
|
List<String>? get genres;
|
|
|
|
/// Create a copy of SpotubeFullAlbumObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$SpotubeFullAlbumObjectImplCopyWith<_$SpotubeFullAlbumObjectImpl>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
SpotubeSimpleAlbumObject _$SpotubeSimpleAlbumObjectFromJson(
|
|
Map<String, dynamic> json) {
|
|
return _SpotubeSimpleAlbumObject.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$SpotubeSimpleAlbumObject {
|
|
String get id => throw _privateConstructorUsedError;
|
|
String get name => throw _privateConstructorUsedError;
|
|
String get externalUri => throw _privateConstructorUsedError;
|
|
List<SpotubeSimpleArtistObject> get artists =>
|
|
throw _privateConstructorUsedError;
|
|
List<SpotubeImageObject> get images => throw _privateConstructorUsedError;
|
|
SpotubeAlbumType get albumType => throw _privateConstructorUsedError;
|
|
String? get releaseDate => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this SpotubeSimpleAlbumObject to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of SpotubeSimpleAlbumObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$SpotubeSimpleAlbumObjectCopyWith<SpotubeSimpleAlbumObject> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $SpotubeSimpleAlbumObjectCopyWith<$Res> {
|
|
factory $SpotubeSimpleAlbumObjectCopyWith(SpotubeSimpleAlbumObject value,
|
|
$Res Function(SpotubeSimpleAlbumObject) then) =
|
|
_$SpotubeSimpleAlbumObjectCopyWithImpl<$Res, SpotubeSimpleAlbumObject>;
|
|
@useResult
|
|
$Res call(
|
|
{String id,
|
|
String name,
|
|
String externalUri,
|
|
List<SpotubeSimpleArtistObject> artists,
|
|
List<SpotubeImageObject> images,
|
|
SpotubeAlbumType albumType,
|
|
String? releaseDate});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$SpotubeSimpleAlbumObjectCopyWithImpl<$Res,
|
|
$Val extends SpotubeSimpleAlbumObject>
|
|
implements $SpotubeSimpleAlbumObjectCopyWith<$Res> {
|
|
_$SpotubeSimpleAlbumObjectCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of SpotubeSimpleAlbumObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? name = null,
|
|
Object? externalUri = null,
|
|
Object? artists = null,
|
|
Object? images = null,
|
|
Object? albumType = null,
|
|
Object? releaseDate = freezed,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
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,
|
|
externalUri: null == externalUri
|
|
? _value.externalUri
|
|
: externalUri // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
artists: null == artists
|
|
? _value.artists
|
|
: artists // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeSimpleArtistObject>,
|
|
images: null == images
|
|
? _value.images
|
|
: images // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeImageObject>,
|
|
albumType: null == albumType
|
|
? _value.albumType
|
|
: albumType // ignore: cast_nullable_to_non_nullable
|
|
as SpotubeAlbumType,
|
|
releaseDate: freezed == releaseDate
|
|
? _value.releaseDate
|
|
: releaseDate // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$SpotubeSimpleAlbumObjectImplCopyWith<$Res>
|
|
implements $SpotubeSimpleAlbumObjectCopyWith<$Res> {
|
|
factory _$$SpotubeSimpleAlbumObjectImplCopyWith(
|
|
_$SpotubeSimpleAlbumObjectImpl value,
|
|
$Res Function(_$SpotubeSimpleAlbumObjectImpl) then) =
|
|
__$$SpotubeSimpleAlbumObjectImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{String id,
|
|
String name,
|
|
String externalUri,
|
|
List<SpotubeSimpleArtistObject> artists,
|
|
List<SpotubeImageObject> images,
|
|
SpotubeAlbumType albumType,
|
|
String? releaseDate});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$SpotubeSimpleAlbumObjectImplCopyWithImpl<$Res>
|
|
extends _$SpotubeSimpleAlbumObjectCopyWithImpl<$Res,
|
|
_$SpotubeSimpleAlbumObjectImpl>
|
|
implements _$$SpotubeSimpleAlbumObjectImplCopyWith<$Res> {
|
|
__$$SpotubeSimpleAlbumObjectImplCopyWithImpl(
|
|
_$SpotubeSimpleAlbumObjectImpl _value,
|
|
$Res Function(_$SpotubeSimpleAlbumObjectImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of SpotubeSimpleAlbumObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? name = null,
|
|
Object? externalUri = null,
|
|
Object? artists = null,
|
|
Object? images = null,
|
|
Object? albumType = null,
|
|
Object? releaseDate = freezed,
|
|
}) {
|
|
return _then(_$SpotubeSimpleAlbumObjectImpl(
|
|
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,
|
|
externalUri: null == externalUri
|
|
? _value.externalUri
|
|
: externalUri // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
artists: null == artists
|
|
? _value._artists
|
|
: artists // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeSimpleArtistObject>,
|
|
images: null == images
|
|
? _value._images
|
|
: images // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeImageObject>,
|
|
albumType: null == albumType
|
|
? _value.albumType
|
|
: albumType // ignore: cast_nullable_to_non_nullable
|
|
as SpotubeAlbumType,
|
|
releaseDate: freezed == releaseDate
|
|
? _value.releaseDate
|
|
: releaseDate // ignore: cast_nullable_to_non_nullable
|
|
as String?,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$SpotubeSimpleAlbumObjectImpl implements _SpotubeSimpleAlbumObject {
|
|
_$SpotubeSimpleAlbumObjectImpl(
|
|
{required this.id,
|
|
required this.name,
|
|
required this.externalUri,
|
|
required final List<SpotubeSimpleArtistObject> artists,
|
|
final List<SpotubeImageObject> images = const [],
|
|
required this.albumType,
|
|
this.releaseDate})
|
|
: _artists = artists,
|
|
_images = images;
|
|
|
|
factory _$SpotubeSimpleAlbumObjectImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$SpotubeSimpleAlbumObjectImplFromJson(json);
|
|
|
|
@override
|
|
final String id;
|
|
@override
|
|
final String name;
|
|
@override
|
|
final String externalUri;
|
|
final List<SpotubeSimpleArtistObject> _artists;
|
|
@override
|
|
List<SpotubeSimpleArtistObject> get artists {
|
|
if (_artists is EqualUnmodifiableListView) return _artists;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_artists);
|
|
}
|
|
|
|
final List<SpotubeImageObject> _images;
|
|
@override
|
|
@JsonKey()
|
|
List<SpotubeImageObject> get images {
|
|
if (_images is EqualUnmodifiableListView) return _images;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_images);
|
|
}
|
|
|
|
@override
|
|
final SpotubeAlbumType albumType;
|
|
@override
|
|
final String? releaseDate;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SpotubeSimpleAlbumObject(id: $id, name: $name, externalUri: $externalUri, artists: $artists, images: $images, albumType: $albumType, releaseDate: $releaseDate)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$SpotubeSimpleAlbumObjectImpl &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
(identical(other.externalUri, externalUri) ||
|
|
other.externalUri == externalUri) &&
|
|
const DeepCollectionEquality().equals(other._artists, _artists) &&
|
|
const DeepCollectionEquality().equals(other._images, _images) &&
|
|
(identical(other.albumType, albumType) ||
|
|
other.albumType == albumType) &&
|
|
(identical(other.releaseDate, releaseDate) ||
|
|
other.releaseDate == releaseDate));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
id,
|
|
name,
|
|
externalUri,
|
|
const DeepCollectionEquality().hash(_artists),
|
|
const DeepCollectionEquality().hash(_images),
|
|
albumType,
|
|
releaseDate);
|
|
|
|
/// Create a copy of SpotubeSimpleAlbumObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$SpotubeSimpleAlbumObjectImplCopyWith<_$SpotubeSimpleAlbumObjectImpl>
|
|
get copyWith => __$$SpotubeSimpleAlbumObjectImplCopyWithImpl<
|
|
_$SpotubeSimpleAlbumObjectImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$SpotubeSimpleAlbumObjectImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _SpotubeSimpleAlbumObject implements SpotubeSimpleAlbumObject {
|
|
factory _SpotubeSimpleAlbumObject(
|
|
{required final String id,
|
|
required final String name,
|
|
required final String externalUri,
|
|
required final List<SpotubeSimpleArtistObject> artists,
|
|
final List<SpotubeImageObject> images,
|
|
required final SpotubeAlbumType albumType,
|
|
final String? releaseDate}) = _$SpotubeSimpleAlbumObjectImpl;
|
|
|
|
factory _SpotubeSimpleAlbumObject.fromJson(Map<String, dynamic> json) =
|
|
_$SpotubeSimpleAlbumObjectImpl.fromJson;
|
|
|
|
@override
|
|
String get id;
|
|
@override
|
|
String get name;
|
|
@override
|
|
String get externalUri;
|
|
@override
|
|
List<SpotubeSimpleArtistObject> get artists;
|
|
@override
|
|
List<SpotubeImageObject> get images;
|
|
@override
|
|
SpotubeAlbumType get albumType;
|
|
@override
|
|
String? get releaseDate;
|
|
|
|
/// Create a copy of SpotubeSimpleAlbumObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$SpotubeSimpleAlbumObjectImplCopyWith<_$SpotubeSimpleAlbumObjectImpl>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
SpotubeFullArtistObject _$SpotubeFullArtistObjectFromJson(
|
|
Map<String, dynamic> json) {
|
|
return _SpotubeFullArtistObject.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$SpotubeFullArtistObject {
|
|
String get id => throw _privateConstructorUsedError;
|
|
String get name => throw _privateConstructorUsedError;
|
|
String get externalUri => throw _privateConstructorUsedError;
|
|
List<SpotubeImageObject> get images => throw _privateConstructorUsedError;
|
|
List<String>? get genres => throw _privateConstructorUsedError;
|
|
int? get followers => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this SpotubeFullArtistObject to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of SpotubeFullArtistObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$SpotubeFullArtistObjectCopyWith<SpotubeFullArtistObject> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $SpotubeFullArtistObjectCopyWith<$Res> {
|
|
factory $SpotubeFullArtistObjectCopyWith(SpotubeFullArtistObject value,
|
|
$Res Function(SpotubeFullArtistObject) then) =
|
|
_$SpotubeFullArtistObjectCopyWithImpl<$Res, SpotubeFullArtistObject>;
|
|
@useResult
|
|
$Res call(
|
|
{String id,
|
|
String name,
|
|
String externalUri,
|
|
List<SpotubeImageObject> images,
|
|
List<String>? genres,
|
|
int? followers});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$SpotubeFullArtistObjectCopyWithImpl<$Res,
|
|
$Val extends SpotubeFullArtistObject>
|
|
implements $SpotubeFullArtistObjectCopyWith<$Res> {
|
|
_$SpotubeFullArtistObjectCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of SpotubeFullArtistObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? name = null,
|
|
Object? externalUri = null,
|
|
Object? images = null,
|
|
Object? genres = freezed,
|
|
Object? followers = freezed,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
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,
|
|
externalUri: null == externalUri
|
|
? _value.externalUri
|
|
: externalUri // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
images: null == images
|
|
? _value.images
|
|
: images // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeImageObject>,
|
|
genres: freezed == genres
|
|
? _value.genres
|
|
: genres // ignore: cast_nullable_to_non_nullable
|
|
as List<String>?,
|
|
followers: freezed == followers
|
|
? _value.followers
|
|
: followers // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$SpotubeFullArtistObjectImplCopyWith<$Res>
|
|
implements $SpotubeFullArtistObjectCopyWith<$Res> {
|
|
factory _$$SpotubeFullArtistObjectImplCopyWith(
|
|
_$SpotubeFullArtistObjectImpl value,
|
|
$Res Function(_$SpotubeFullArtistObjectImpl) then) =
|
|
__$$SpotubeFullArtistObjectImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{String id,
|
|
String name,
|
|
String externalUri,
|
|
List<SpotubeImageObject> images,
|
|
List<String>? genres,
|
|
int? followers});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$SpotubeFullArtistObjectImplCopyWithImpl<$Res>
|
|
extends _$SpotubeFullArtistObjectCopyWithImpl<$Res,
|
|
_$SpotubeFullArtistObjectImpl>
|
|
implements _$$SpotubeFullArtistObjectImplCopyWith<$Res> {
|
|
__$$SpotubeFullArtistObjectImplCopyWithImpl(
|
|
_$SpotubeFullArtistObjectImpl _value,
|
|
$Res Function(_$SpotubeFullArtistObjectImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of SpotubeFullArtistObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? name = null,
|
|
Object? externalUri = null,
|
|
Object? images = null,
|
|
Object? genres = freezed,
|
|
Object? followers = freezed,
|
|
}) {
|
|
return _then(_$SpotubeFullArtistObjectImpl(
|
|
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,
|
|
externalUri: null == externalUri
|
|
? _value.externalUri
|
|
: externalUri // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
images: null == images
|
|
? _value._images
|
|
: images // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeImageObject>,
|
|
genres: freezed == genres
|
|
? _value._genres
|
|
: genres // ignore: cast_nullable_to_non_nullable
|
|
as List<String>?,
|
|
followers: freezed == followers
|
|
? _value.followers
|
|
: followers // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$SpotubeFullArtistObjectImpl implements _SpotubeFullArtistObject {
|
|
_$SpotubeFullArtistObjectImpl(
|
|
{required this.id,
|
|
required this.name,
|
|
required this.externalUri,
|
|
final List<SpotubeImageObject> images = const [],
|
|
final List<String>? genres,
|
|
this.followers})
|
|
: _images = images,
|
|
_genres = genres;
|
|
|
|
factory _$SpotubeFullArtistObjectImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$SpotubeFullArtistObjectImplFromJson(json);
|
|
|
|
@override
|
|
final String id;
|
|
@override
|
|
final String name;
|
|
@override
|
|
final String externalUri;
|
|
final List<SpotubeImageObject> _images;
|
|
@override
|
|
@JsonKey()
|
|
List<SpotubeImageObject> get images {
|
|
if (_images is EqualUnmodifiableListView) return _images;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_images);
|
|
}
|
|
|
|
final List<String>? _genres;
|
|
@override
|
|
List<String>? get genres {
|
|
final value = _genres;
|
|
if (value == null) return null;
|
|
if (_genres is EqualUnmodifiableListView) return _genres;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(value);
|
|
}
|
|
|
|
@override
|
|
final int? followers;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SpotubeFullArtistObject(id: $id, name: $name, externalUri: $externalUri, images: $images, genres: $genres, followers: $followers)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$SpotubeFullArtistObjectImpl &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
(identical(other.externalUri, externalUri) ||
|
|
other.externalUri == externalUri) &&
|
|
const DeepCollectionEquality().equals(other._images, _images) &&
|
|
const DeepCollectionEquality().equals(other._genres, _genres) &&
|
|
(identical(other.followers, followers) ||
|
|
other.followers == followers));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
id,
|
|
name,
|
|
externalUri,
|
|
const DeepCollectionEquality().hash(_images),
|
|
const DeepCollectionEquality().hash(_genres),
|
|
followers);
|
|
|
|
/// Create a copy of SpotubeFullArtistObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$SpotubeFullArtistObjectImplCopyWith<_$SpotubeFullArtistObjectImpl>
|
|
get copyWith => __$$SpotubeFullArtistObjectImplCopyWithImpl<
|
|
_$SpotubeFullArtistObjectImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$SpotubeFullArtistObjectImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _SpotubeFullArtistObject implements SpotubeFullArtistObject {
|
|
factory _SpotubeFullArtistObject(
|
|
{required final String id,
|
|
required final String name,
|
|
required final String externalUri,
|
|
final List<SpotubeImageObject> images,
|
|
final List<String>? genres,
|
|
final int? followers}) = _$SpotubeFullArtistObjectImpl;
|
|
|
|
factory _SpotubeFullArtistObject.fromJson(Map<String, dynamic> json) =
|
|
_$SpotubeFullArtistObjectImpl.fromJson;
|
|
|
|
@override
|
|
String get id;
|
|
@override
|
|
String get name;
|
|
@override
|
|
String get externalUri;
|
|
@override
|
|
List<SpotubeImageObject> get images;
|
|
@override
|
|
List<String>? get genres;
|
|
@override
|
|
int? get followers;
|
|
|
|
/// Create a copy of SpotubeFullArtistObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$SpotubeFullArtistObjectImplCopyWith<_$SpotubeFullArtistObjectImpl>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
SpotubeSimpleArtistObject _$SpotubeSimpleArtistObjectFromJson(
|
|
Map<String, dynamic> json) {
|
|
return _SpotubeSimpleArtistObject.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$SpotubeSimpleArtistObject {
|
|
String get id => throw _privateConstructorUsedError;
|
|
String get name => throw _privateConstructorUsedError;
|
|
String get externalUri => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this SpotubeSimpleArtistObject to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of SpotubeSimpleArtistObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$SpotubeSimpleArtistObjectCopyWith<SpotubeSimpleArtistObject> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $SpotubeSimpleArtistObjectCopyWith<$Res> {
|
|
factory $SpotubeSimpleArtistObjectCopyWith(SpotubeSimpleArtistObject value,
|
|
$Res Function(SpotubeSimpleArtistObject) then) =
|
|
_$SpotubeSimpleArtistObjectCopyWithImpl<$Res, SpotubeSimpleArtistObject>;
|
|
@useResult
|
|
$Res call({String id, String name, String externalUri});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$SpotubeSimpleArtistObjectCopyWithImpl<$Res,
|
|
$Val extends SpotubeSimpleArtistObject>
|
|
implements $SpotubeSimpleArtistObjectCopyWith<$Res> {
|
|
_$SpotubeSimpleArtistObjectCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of SpotubeSimpleArtistObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? name = null,
|
|
Object? externalUri = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
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,
|
|
externalUri: null == externalUri
|
|
? _value.externalUri
|
|
: externalUri // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$SpotubeSimpleArtistObjectImplCopyWith<$Res>
|
|
implements $SpotubeSimpleArtistObjectCopyWith<$Res> {
|
|
factory _$$SpotubeSimpleArtistObjectImplCopyWith(
|
|
_$SpotubeSimpleArtistObjectImpl value,
|
|
$Res Function(_$SpotubeSimpleArtistObjectImpl) then) =
|
|
__$$SpotubeSimpleArtistObjectImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({String id, String name, String externalUri});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$SpotubeSimpleArtistObjectImplCopyWithImpl<$Res>
|
|
extends _$SpotubeSimpleArtistObjectCopyWithImpl<$Res,
|
|
_$SpotubeSimpleArtistObjectImpl>
|
|
implements _$$SpotubeSimpleArtistObjectImplCopyWith<$Res> {
|
|
__$$SpotubeSimpleArtistObjectImplCopyWithImpl(
|
|
_$SpotubeSimpleArtistObjectImpl _value,
|
|
$Res Function(_$SpotubeSimpleArtistObjectImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of SpotubeSimpleArtistObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? name = null,
|
|
Object? externalUri = null,
|
|
}) {
|
|
return _then(_$SpotubeSimpleArtistObjectImpl(
|
|
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,
|
|
externalUri: null == externalUri
|
|
? _value.externalUri
|
|
: externalUri // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$SpotubeSimpleArtistObjectImpl implements _SpotubeSimpleArtistObject {
|
|
_$SpotubeSimpleArtistObjectImpl(
|
|
{required this.id, required this.name, required this.externalUri});
|
|
|
|
factory _$SpotubeSimpleArtistObjectImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$SpotubeSimpleArtistObjectImplFromJson(json);
|
|
|
|
@override
|
|
final String id;
|
|
@override
|
|
final String name;
|
|
@override
|
|
final String externalUri;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SpotubeSimpleArtistObject(id: $id, name: $name, externalUri: $externalUri)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$SpotubeSimpleArtistObjectImpl &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
(identical(other.externalUri, externalUri) ||
|
|
other.externalUri == externalUri));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, id, name, externalUri);
|
|
|
|
/// Create a copy of SpotubeSimpleArtistObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$SpotubeSimpleArtistObjectImplCopyWith<_$SpotubeSimpleArtistObjectImpl>
|
|
get copyWith => __$$SpotubeSimpleArtistObjectImplCopyWithImpl<
|
|
_$SpotubeSimpleArtistObjectImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$SpotubeSimpleArtistObjectImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _SpotubeSimpleArtistObject implements SpotubeSimpleArtistObject {
|
|
factory _SpotubeSimpleArtistObject(
|
|
{required final String id,
|
|
required final String name,
|
|
required final String externalUri}) = _$SpotubeSimpleArtistObjectImpl;
|
|
|
|
factory _SpotubeSimpleArtistObject.fromJson(Map<String, dynamic> json) =
|
|
_$SpotubeSimpleArtistObjectImpl.fromJson;
|
|
|
|
@override
|
|
String get id;
|
|
@override
|
|
String get name;
|
|
@override
|
|
String get externalUri;
|
|
|
|
/// Create a copy of SpotubeSimpleArtistObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$SpotubeSimpleArtistObjectImplCopyWith<_$SpotubeSimpleArtistObjectImpl>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
SpotubeBrowseSectionObject<T> _$SpotubeBrowseSectionObjectFromJson<T>(
|
|
Map<String, dynamic> json, T Function(Object?) fromJsonT) {
|
|
return _SpotubeBrowseSectionObject<T>.fromJson(json, fromJsonT);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$SpotubeBrowseSectionObject<T> {
|
|
String get id => throw _privateConstructorUsedError;
|
|
String get title => throw _privateConstructorUsedError;
|
|
String get externalUri => throw _privateConstructorUsedError;
|
|
bool get browseMore => throw _privateConstructorUsedError;
|
|
List<T> get items => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this SpotubeBrowseSectionObject to a JSON map.
|
|
Map<String, dynamic> toJson(Object? Function(T) toJsonT) =>
|
|
throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of SpotubeBrowseSectionObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$SpotubeBrowseSectionObjectCopyWith<T, SpotubeBrowseSectionObject<T>>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $SpotubeBrowseSectionObjectCopyWith<T, $Res> {
|
|
factory $SpotubeBrowseSectionObjectCopyWith(
|
|
SpotubeBrowseSectionObject<T> value,
|
|
$Res Function(SpotubeBrowseSectionObject<T>) then) =
|
|
_$SpotubeBrowseSectionObjectCopyWithImpl<T, $Res,
|
|
SpotubeBrowseSectionObject<T>>;
|
|
@useResult
|
|
$Res call(
|
|
{String id,
|
|
String title,
|
|
String externalUri,
|
|
bool browseMore,
|
|
List<T> items});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$SpotubeBrowseSectionObjectCopyWithImpl<T, $Res,
|
|
$Val extends SpotubeBrowseSectionObject<T>>
|
|
implements $SpotubeBrowseSectionObjectCopyWith<T, $Res> {
|
|
_$SpotubeBrowseSectionObjectCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of SpotubeBrowseSectionObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? title = null,
|
|
Object? externalUri = null,
|
|
Object? browseMore = null,
|
|
Object? items = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
title: null == title
|
|
? _value.title
|
|
: title // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
externalUri: null == externalUri
|
|
? _value.externalUri
|
|
: externalUri // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
browseMore: null == browseMore
|
|
? _value.browseMore
|
|
: browseMore // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
items: null == items
|
|
? _value.items
|
|
: items // ignore: cast_nullable_to_non_nullable
|
|
as List<T>,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$SpotubeBrowseSectionObjectImplCopyWith<T, $Res>
|
|
implements $SpotubeBrowseSectionObjectCopyWith<T, $Res> {
|
|
factory _$$SpotubeBrowseSectionObjectImplCopyWith(
|
|
_$SpotubeBrowseSectionObjectImpl<T> value,
|
|
$Res Function(_$SpotubeBrowseSectionObjectImpl<T>) then) =
|
|
__$$SpotubeBrowseSectionObjectImplCopyWithImpl<T, $Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{String id,
|
|
String title,
|
|
String externalUri,
|
|
bool browseMore,
|
|
List<T> items});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$SpotubeBrowseSectionObjectImplCopyWithImpl<T, $Res>
|
|
extends _$SpotubeBrowseSectionObjectCopyWithImpl<T, $Res,
|
|
_$SpotubeBrowseSectionObjectImpl<T>>
|
|
implements _$$SpotubeBrowseSectionObjectImplCopyWith<T, $Res> {
|
|
__$$SpotubeBrowseSectionObjectImplCopyWithImpl(
|
|
_$SpotubeBrowseSectionObjectImpl<T> _value,
|
|
$Res Function(_$SpotubeBrowseSectionObjectImpl<T>) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of SpotubeBrowseSectionObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? title = null,
|
|
Object? externalUri = null,
|
|
Object? browseMore = null,
|
|
Object? items = null,
|
|
}) {
|
|
return _then(_$SpotubeBrowseSectionObjectImpl<T>(
|
|
id: null == id
|
|
? _value.id
|
|
: id // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
title: null == title
|
|
? _value.title
|
|
: title // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
externalUri: null == externalUri
|
|
? _value.externalUri
|
|
: externalUri // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
browseMore: null == browseMore
|
|
? _value.browseMore
|
|
: browseMore // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
items: null == items
|
|
? _value._items
|
|
: items // ignore: cast_nullable_to_non_nullable
|
|
as List<T>,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable(genericArgumentFactories: true)
|
|
class _$SpotubeBrowseSectionObjectImpl<T>
|
|
implements _SpotubeBrowseSectionObject<T> {
|
|
_$SpotubeBrowseSectionObjectImpl(
|
|
{required this.id,
|
|
required this.title,
|
|
required this.externalUri,
|
|
required this.browseMore,
|
|
required final List<T> items})
|
|
: _items = items;
|
|
|
|
factory _$SpotubeBrowseSectionObjectImpl.fromJson(
|
|
Map<String, dynamic> json, T Function(Object?) fromJsonT) =>
|
|
_$$SpotubeBrowseSectionObjectImplFromJson(json, fromJsonT);
|
|
|
|
@override
|
|
final String id;
|
|
@override
|
|
final String title;
|
|
@override
|
|
final String externalUri;
|
|
@override
|
|
final bool browseMore;
|
|
final List<T> _items;
|
|
@override
|
|
List<T> get items {
|
|
if (_items is EqualUnmodifiableListView) return _items;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_items);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SpotubeBrowseSectionObject<$T>(id: $id, title: $title, externalUri: $externalUri, browseMore: $browseMore, items: $items)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$SpotubeBrowseSectionObjectImpl<T> &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.title, title) || other.title == title) &&
|
|
(identical(other.externalUri, externalUri) ||
|
|
other.externalUri == externalUri) &&
|
|
(identical(other.browseMore, browseMore) ||
|
|
other.browseMore == browseMore) &&
|
|
const DeepCollectionEquality().equals(other._items, _items));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, id, title, externalUri,
|
|
browseMore, const DeepCollectionEquality().hash(_items));
|
|
|
|
/// Create a copy of SpotubeBrowseSectionObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$SpotubeBrowseSectionObjectImplCopyWith<T,
|
|
_$SpotubeBrowseSectionObjectImpl<T>>
|
|
get copyWith => __$$SpotubeBrowseSectionObjectImplCopyWithImpl<T,
|
|
_$SpotubeBrowseSectionObjectImpl<T>>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson(Object? Function(T) toJsonT) {
|
|
return _$$SpotubeBrowseSectionObjectImplToJson<T>(this, toJsonT);
|
|
}
|
|
}
|
|
|
|
abstract class _SpotubeBrowseSectionObject<T>
|
|
implements SpotubeBrowseSectionObject<T> {
|
|
factory _SpotubeBrowseSectionObject(
|
|
{required final String id,
|
|
required final String title,
|
|
required final String externalUri,
|
|
required final bool browseMore,
|
|
required final List<T> items}) = _$SpotubeBrowseSectionObjectImpl<T>;
|
|
|
|
factory _SpotubeBrowseSectionObject.fromJson(
|
|
Map<String, dynamic> json, T Function(Object?) fromJsonT) =
|
|
_$SpotubeBrowseSectionObjectImpl<T>.fromJson;
|
|
|
|
@override
|
|
String get id;
|
|
@override
|
|
String get title;
|
|
@override
|
|
String get externalUri;
|
|
@override
|
|
bool get browseMore;
|
|
@override
|
|
List<T> get items;
|
|
|
|
/// Create a copy of SpotubeBrowseSectionObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$SpotubeBrowseSectionObjectImplCopyWith<T,
|
|
_$SpotubeBrowseSectionObjectImpl<T>>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
SpotubeImageObject _$SpotubeImageObjectFromJson(Map<String, dynamic> json) {
|
|
return _SpotubeImageObject.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$SpotubeImageObject {
|
|
String get url => throw _privateConstructorUsedError;
|
|
int? get width => throw _privateConstructorUsedError;
|
|
int? get height => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this SpotubeImageObject to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of SpotubeImageObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$SpotubeImageObjectCopyWith<SpotubeImageObject> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $SpotubeImageObjectCopyWith<$Res> {
|
|
factory $SpotubeImageObjectCopyWith(
|
|
SpotubeImageObject value, $Res Function(SpotubeImageObject) then) =
|
|
_$SpotubeImageObjectCopyWithImpl<$Res, SpotubeImageObject>;
|
|
@useResult
|
|
$Res call({String url, int? width, int? height});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$SpotubeImageObjectCopyWithImpl<$Res, $Val extends SpotubeImageObject>
|
|
implements $SpotubeImageObjectCopyWith<$Res> {
|
|
_$SpotubeImageObjectCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of SpotubeImageObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? url = null,
|
|
Object? width = freezed,
|
|
Object? height = freezed,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
url: null == url
|
|
? _value.url
|
|
: url // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
width: freezed == width
|
|
? _value.width
|
|
: width // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
height: freezed == height
|
|
? _value.height
|
|
: height // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$SpotubeImageObjectImplCopyWith<$Res>
|
|
implements $SpotubeImageObjectCopyWith<$Res> {
|
|
factory _$$SpotubeImageObjectImplCopyWith(_$SpotubeImageObjectImpl value,
|
|
$Res Function(_$SpotubeImageObjectImpl) then) =
|
|
__$$SpotubeImageObjectImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call({String url, int? width, int? height});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$SpotubeImageObjectImplCopyWithImpl<$Res>
|
|
extends _$SpotubeImageObjectCopyWithImpl<$Res, _$SpotubeImageObjectImpl>
|
|
implements _$$SpotubeImageObjectImplCopyWith<$Res> {
|
|
__$$SpotubeImageObjectImplCopyWithImpl(_$SpotubeImageObjectImpl _value,
|
|
$Res Function(_$SpotubeImageObjectImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of SpotubeImageObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? url = null,
|
|
Object? width = freezed,
|
|
Object? height = freezed,
|
|
}) {
|
|
return _then(_$SpotubeImageObjectImpl(
|
|
url: null == url
|
|
? _value.url
|
|
: url // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
width: freezed == width
|
|
? _value.width
|
|
: width // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
height: freezed == height
|
|
? _value.height
|
|
: height // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$SpotubeImageObjectImpl implements _SpotubeImageObject {
|
|
_$SpotubeImageObjectImpl({required this.url, this.width, this.height});
|
|
|
|
factory _$SpotubeImageObjectImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$SpotubeImageObjectImplFromJson(json);
|
|
|
|
@override
|
|
final String url;
|
|
@override
|
|
final int? width;
|
|
@override
|
|
final int? height;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SpotubeImageObject(url: $url, width: $width, height: $height)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$SpotubeImageObjectImpl &&
|
|
(identical(other.url, url) || other.url == url) &&
|
|
(identical(other.width, width) || other.width == width) &&
|
|
(identical(other.height, height) || other.height == height));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, url, width, height);
|
|
|
|
/// Create a copy of SpotubeImageObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$SpotubeImageObjectImplCopyWith<_$SpotubeImageObjectImpl> get copyWith =>
|
|
__$$SpotubeImageObjectImplCopyWithImpl<_$SpotubeImageObjectImpl>(
|
|
this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$SpotubeImageObjectImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _SpotubeImageObject implements SpotubeImageObject {
|
|
factory _SpotubeImageObject(
|
|
{required final String url,
|
|
final int? width,
|
|
final int? height}) = _$SpotubeImageObjectImpl;
|
|
|
|
factory _SpotubeImageObject.fromJson(Map<String, dynamic> json) =
|
|
_$SpotubeImageObjectImpl.fromJson;
|
|
|
|
@override
|
|
String get url;
|
|
@override
|
|
int? get width;
|
|
@override
|
|
int? get height;
|
|
|
|
/// Create a copy of SpotubeImageObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$SpotubeImageObjectImplCopyWith<_$SpotubeImageObjectImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
SpotubePaginationResponseObject<T> _$SpotubePaginationResponseObjectFromJson<T>(
|
|
Map<String, dynamic> json, T Function(Object?) fromJsonT) {
|
|
return _SpotubePaginationResponseObject<T>.fromJson(json, fromJsonT);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$SpotubePaginationResponseObject<T> {
|
|
int get limit => throw _privateConstructorUsedError;
|
|
int? get nextOffset => throw _privateConstructorUsedError;
|
|
int get total => throw _privateConstructorUsedError;
|
|
bool get hasMore => throw _privateConstructorUsedError;
|
|
List<T> get items => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this SpotubePaginationResponseObject to a JSON map.
|
|
Map<String, dynamic> toJson(Object? Function(T) toJsonT) =>
|
|
throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of SpotubePaginationResponseObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$SpotubePaginationResponseObjectCopyWith<T,
|
|
SpotubePaginationResponseObject<T>>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $SpotubePaginationResponseObjectCopyWith<T, $Res> {
|
|
factory $SpotubePaginationResponseObjectCopyWith(
|
|
SpotubePaginationResponseObject<T> value,
|
|
$Res Function(SpotubePaginationResponseObject<T>) then) =
|
|
_$SpotubePaginationResponseObjectCopyWithImpl<T, $Res,
|
|
SpotubePaginationResponseObject<T>>;
|
|
@useResult
|
|
$Res call(
|
|
{int limit, int? nextOffset, int total, bool hasMore, List<T> items});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$SpotubePaginationResponseObjectCopyWithImpl<T, $Res,
|
|
$Val extends SpotubePaginationResponseObject<T>>
|
|
implements $SpotubePaginationResponseObjectCopyWith<T, $Res> {
|
|
_$SpotubePaginationResponseObjectCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of SpotubePaginationResponseObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? limit = null,
|
|
Object? nextOffset = freezed,
|
|
Object? total = null,
|
|
Object? hasMore = null,
|
|
Object? items = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
limit: null == limit
|
|
? _value.limit
|
|
: limit // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
nextOffset: freezed == nextOffset
|
|
? _value.nextOffset
|
|
: nextOffset // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
total: null == total
|
|
? _value.total
|
|
: total // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
hasMore: null == hasMore
|
|
? _value.hasMore
|
|
: hasMore // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
items: null == items
|
|
? _value.items
|
|
: items // ignore: cast_nullable_to_non_nullable
|
|
as List<T>,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$SpotubePaginationResponseObjectImplCopyWith<T, $Res>
|
|
implements $SpotubePaginationResponseObjectCopyWith<T, $Res> {
|
|
factory _$$SpotubePaginationResponseObjectImplCopyWith(
|
|
_$SpotubePaginationResponseObjectImpl<T> value,
|
|
$Res Function(_$SpotubePaginationResponseObjectImpl<T>) then) =
|
|
__$$SpotubePaginationResponseObjectImplCopyWithImpl<T, $Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{int limit, int? nextOffset, int total, bool hasMore, List<T> items});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$SpotubePaginationResponseObjectImplCopyWithImpl<T, $Res>
|
|
extends _$SpotubePaginationResponseObjectCopyWithImpl<T, $Res,
|
|
_$SpotubePaginationResponseObjectImpl<T>>
|
|
implements _$$SpotubePaginationResponseObjectImplCopyWith<T, $Res> {
|
|
__$$SpotubePaginationResponseObjectImplCopyWithImpl(
|
|
_$SpotubePaginationResponseObjectImpl<T> _value,
|
|
$Res Function(_$SpotubePaginationResponseObjectImpl<T>) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of SpotubePaginationResponseObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? limit = null,
|
|
Object? nextOffset = freezed,
|
|
Object? total = null,
|
|
Object? hasMore = null,
|
|
Object? items = null,
|
|
}) {
|
|
return _then(_$SpotubePaginationResponseObjectImpl<T>(
|
|
limit: null == limit
|
|
? _value.limit
|
|
: limit // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
nextOffset: freezed == nextOffset
|
|
? _value.nextOffset
|
|
: nextOffset // ignore: cast_nullable_to_non_nullable
|
|
as int?,
|
|
total: null == total
|
|
? _value.total
|
|
: total // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
hasMore: null == hasMore
|
|
? _value.hasMore
|
|
: hasMore // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
items: null == items
|
|
? _value._items
|
|
: items // ignore: cast_nullable_to_non_nullable
|
|
as List<T>,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable(genericArgumentFactories: true)
|
|
class _$SpotubePaginationResponseObjectImpl<T>
|
|
implements _SpotubePaginationResponseObject<T> {
|
|
_$SpotubePaginationResponseObjectImpl(
|
|
{required this.limit,
|
|
required this.nextOffset,
|
|
required this.total,
|
|
required this.hasMore,
|
|
required final List<T> items})
|
|
: _items = items;
|
|
|
|
factory _$SpotubePaginationResponseObjectImpl.fromJson(
|
|
Map<String, dynamic> json, T Function(Object?) fromJsonT) =>
|
|
_$$SpotubePaginationResponseObjectImplFromJson(json, fromJsonT);
|
|
|
|
@override
|
|
final int limit;
|
|
@override
|
|
final int? nextOffset;
|
|
@override
|
|
final int total;
|
|
@override
|
|
final bool hasMore;
|
|
final List<T> _items;
|
|
@override
|
|
List<T> get items {
|
|
if (_items is EqualUnmodifiableListView) return _items;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_items);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SpotubePaginationResponseObject<$T>(limit: $limit, nextOffset: $nextOffset, total: $total, hasMore: $hasMore, items: $items)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$SpotubePaginationResponseObjectImpl<T> &&
|
|
(identical(other.limit, limit) || other.limit == limit) &&
|
|
(identical(other.nextOffset, nextOffset) ||
|
|
other.nextOffset == nextOffset) &&
|
|
(identical(other.total, total) || other.total == total) &&
|
|
(identical(other.hasMore, hasMore) || other.hasMore == hasMore) &&
|
|
const DeepCollectionEquality().equals(other._items, _items));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, limit, nextOffset, total,
|
|
hasMore, const DeepCollectionEquality().hash(_items));
|
|
|
|
/// Create a copy of SpotubePaginationResponseObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$SpotubePaginationResponseObjectImplCopyWith<T,
|
|
_$SpotubePaginationResponseObjectImpl<T>>
|
|
get copyWith => __$$SpotubePaginationResponseObjectImplCopyWithImpl<T,
|
|
_$SpotubePaginationResponseObjectImpl<T>>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson(Object? Function(T) toJsonT) {
|
|
return _$$SpotubePaginationResponseObjectImplToJson<T>(this, toJsonT);
|
|
}
|
|
}
|
|
|
|
abstract class _SpotubePaginationResponseObject<T>
|
|
implements SpotubePaginationResponseObject<T> {
|
|
factory _SpotubePaginationResponseObject(
|
|
{required final int limit,
|
|
required final int? nextOffset,
|
|
required final int total,
|
|
required final bool hasMore,
|
|
required final List<T> items}) = _$SpotubePaginationResponseObjectImpl<T>;
|
|
|
|
factory _SpotubePaginationResponseObject.fromJson(
|
|
Map<String, dynamic> json, T Function(Object?) fromJsonT) =
|
|
_$SpotubePaginationResponseObjectImpl<T>.fromJson;
|
|
|
|
@override
|
|
int get limit;
|
|
@override
|
|
int? get nextOffset;
|
|
@override
|
|
int get total;
|
|
@override
|
|
bool get hasMore;
|
|
@override
|
|
List<T> get items;
|
|
|
|
/// Create a copy of SpotubePaginationResponseObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$SpotubePaginationResponseObjectImplCopyWith<T,
|
|
_$SpotubePaginationResponseObjectImpl<T>>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
SpotubeFullPlaylistObject _$SpotubeFullPlaylistObjectFromJson(
|
|
Map<String, dynamic> json) {
|
|
return _SpotubeFullPlaylistObject.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$SpotubeFullPlaylistObject {
|
|
String get id => throw _privateConstructorUsedError;
|
|
String get name => throw _privateConstructorUsedError;
|
|
String get description => throw _privateConstructorUsedError;
|
|
String get externalUri => throw _privateConstructorUsedError;
|
|
SpotubeUserObject get owner => throw _privateConstructorUsedError;
|
|
List<SpotubeImageObject> get images => throw _privateConstructorUsedError;
|
|
List<SpotubeUserObject> get collaborators =>
|
|
throw _privateConstructorUsedError;
|
|
bool get collaborative => throw _privateConstructorUsedError;
|
|
bool get public => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this SpotubeFullPlaylistObject to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of SpotubeFullPlaylistObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$SpotubeFullPlaylistObjectCopyWith<SpotubeFullPlaylistObject> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $SpotubeFullPlaylistObjectCopyWith<$Res> {
|
|
factory $SpotubeFullPlaylistObjectCopyWith(SpotubeFullPlaylistObject value,
|
|
$Res Function(SpotubeFullPlaylistObject) then) =
|
|
_$SpotubeFullPlaylistObjectCopyWithImpl<$Res, SpotubeFullPlaylistObject>;
|
|
@useResult
|
|
$Res call(
|
|
{String id,
|
|
String name,
|
|
String description,
|
|
String externalUri,
|
|
SpotubeUserObject owner,
|
|
List<SpotubeImageObject> images,
|
|
List<SpotubeUserObject> collaborators,
|
|
bool collaborative,
|
|
bool public});
|
|
|
|
$SpotubeUserObjectCopyWith<$Res> get owner;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$SpotubeFullPlaylistObjectCopyWithImpl<$Res,
|
|
$Val extends SpotubeFullPlaylistObject>
|
|
implements $SpotubeFullPlaylistObjectCopyWith<$Res> {
|
|
_$SpotubeFullPlaylistObjectCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of SpotubeFullPlaylistObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? name = null,
|
|
Object? description = null,
|
|
Object? externalUri = null,
|
|
Object? owner = null,
|
|
Object? images = null,
|
|
Object? collaborators = null,
|
|
Object? collaborative = null,
|
|
Object? public = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
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,
|
|
description: null == description
|
|
? _value.description
|
|
: description // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
externalUri: null == externalUri
|
|
? _value.externalUri
|
|
: externalUri // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
owner: null == owner
|
|
? _value.owner
|
|
: owner // ignore: cast_nullable_to_non_nullable
|
|
as SpotubeUserObject,
|
|
images: null == images
|
|
? _value.images
|
|
: images // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeImageObject>,
|
|
collaborators: null == collaborators
|
|
? _value.collaborators
|
|
: collaborators // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeUserObject>,
|
|
collaborative: null == collaborative
|
|
? _value.collaborative
|
|
: collaborative // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
public: null == public
|
|
? _value.public
|
|
: public // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
) as $Val);
|
|
}
|
|
|
|
/// Create a copy of SpotubeFullPlaylistObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
$SpotubeUserObjectCopyWith<$Res> get owner {
|
|
return $SpotubeUserObjectCopyWith<$Res>(_value.owner, (value) {
|
|
return _then(_value.copyWith(owner: value) as $Val);
|
|
});
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$SpotubeFullPlaylistObjectImplCopyWith<$Res>
|
|
implements $SpotubeFullPlaylistObjectCopyWith<$Res> {
|
|
factory _$$SpotubeFullPlaylistObjectImplCopyWith(
|
|
_$SpotubeFullPlaylistObjectImpl value,
|
|
$Res Function(_$SpotubeFullPlaylistObjectImpl) then) =
|
|
__$$SpotubeFullPlaylistObjectImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{String id,
|
|
String name,
|
|
String description,
|
|
String externalUri,
|
|
SpotubeUserObject owner,
|
|
List<SpotubeImageObject> images,
|
|
List<SpotubeUserObject> collaborators,
|
|
bool collaborative,
|
|
bool public});
|
|
|
|
@override
|
|
$SpotubeUserObjectCopyWith<$Res> get owner;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$SpotubeFullPlaylistObjectImplCopyWithImpl<$Res>
|
|
extends _$SpotubeFullPlaylistObjectCopyWithImpl<$Res,
|
|
_$SpotubeFullPlaylistObjectImpl>
|
|
implements _$$SpotubeFullPlaylistObjectImplCopyWith<$Res> {
|
|
__$$SpotubeFullPlaylistObjectImplCopyWithImpl(
|
|
_$SpotubeFullPlaylistObjectImpl _value,
|
|
$Res Function(_$SpotubeFullPlaylistObjectImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of SpotubeFullPlaylistObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? name = null,
|
|
Object? description = null,
|
|
Object? externalUri = null,
|
|
Object? owner = null,
|
|
Object? images = null,
|
|
Object? collaborators = null,
|
|
Object? collaborative = null,
|
|
Object? public = null,
|
|
}) {
|
|
return _then(_$SpotubeFullPlaylistObjectImpl(
|
|
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,
|
|
description: null == description
|
|
? _value.description
|
|
: description // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
externalUri: null == externalUri
|
|
? _value.externalUri
|
|
: externalUri // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
owner: null == owner
|
|
? _value.owner
|
|
: owner // ignore: cast_nullable_to_non_nullable
|
|
as SpotubeUserObject,
|
|
images: null == images
|
|
? _value._images
|
|
: images // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeImageObject>,
|
|
collaborators: null == collaborators
|
|
? _value._collaborators
|
|
: collaborators // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeUserObject>,
|
|
collaborative: null == collaborative
|
|
? _value.collaborative
|
|
: collaborative // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
public: null == public
|
|
? _value.public
|
|
: public // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$SpotubeFullPlaylistObjectImpl implements _SpotubeFullPlaylistObject {
|
|
_$SpotubeFullPlaylistObjectImpl(
|
|
{required this.id,
|
|
required this.name,
|
|
required this.description,
|
|
required this.externalUri,
|
|
required this.owner,
|
|
final List<SpotubeImageObject> images = const [],
|
|
final List<SpotubeUserObject> collaborators = const [],
|
|
this.collaborative = false,
|
|
this.public = false})
|
|
: _images = images,
|
|
_collaborators = collaborators;
|
|
|
|
factory _$SpotubeFullPlaylistObjectImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$SpotubeFullPlaylistObjectImplFromJson(json);
|
|
|
|
@override
|
|
final String id;
|
|
@override
|
|
final String name;
|
|
@override
|
|
final String description;
|
|
@override
|
|
final String externalUri;
|
|
@override
|
|
final SpotubeUserObject owner;
|
|
final List<SpotubeImageObject> _images;
|
|
@override
|
|
@JsonKey()
|
|
List<SpotubeImageObject> get images {
|
|
if (_images is EqualUnmodifiableListView) return _images;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_images);
|
|
}
|
|
|
|
final List<SpotubeUserObject> _collaborators;
|
|
@override
|
|
@JsonKey()
|
|
List<SpotubeUserObject> get collaborators {
|
|
if (_collaborators is EqualUnmodifiableListView) return _collaborators;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_collaborators);
|
|
}
|
|
|
|
@override
|
|
@JsonKey()
|
|
final bool collaborative;
|
|
@override
|
|
@JsonKey()
|
|
final bool public;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SpotubeFullPlaylistObject(id: $id, name: $name, description: $description, externalUri: $externalUri, owner: $owner, images: $images, collaborators: $collaborators, collaborative: $collaborative, public: $public)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$SpotubeFullPlaylistObjectImpl &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
(identical(other.description, description) ||
|
|
other.description == description) &&
|
|
(identical(other.externalUri, externalUri) ||
|
|
other.externalUri == externalUri) &&
|
|
(identical(other.owner, owner) || other.owner == owner) &&
|
|
const DeepCollectionEquality().equals(other._images, _images) &&
|
|
const DeepCollectionEquality()
|
|
.equals(other._collaborators, _collaborators) &&
|
|
(identical(other.collaborative, collaborative) ||
|
|
other.collaborative == collaborative) &&
|
|
(identical(other.public, public) || other.public == public));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
id,
|
|
name,
|
|
description,
|
|
externalUri,
|
|
owner,
|
|
const DeepCollectionEquality().hash(_images),
|
|
const DeepCollectionEquality().hash(_collaborators),
|
|
collaborative,
|
|
public);
|
|
|
|
/// Create a copy of SpotubeFullPlaylistObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$SpotubeFullPlaylistObjectImplCopyWith<_$SpotubeFullPlaylistObjectImpl>
|
|
get copyWith => __$$SpotubeFullPlaylistObjectImplCopyWithImpl<
|
|
_$SpotubeFullPlaylistObjectImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$SpotubeFullPlaylistObjectImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _SpotubeFullPlaylistObject implements SpotubeFullPlaylistObject {
|
|
factory _SpotubeFullPlaylistObject(
|
|
{required final String id,
|
|
required final String name,
|
|
required final String description,
|
|
required final String externalUri,
|
|
required final SpotubeUserObject owner,
|
|
final List<SpotubeImageObject> images,
|
|
final List<SpotubeUserObject> collaborators,
|
|
final bool collaborative,
|
|
final bool public}) = _$SpotubeFullPlaylistObjectImpl;
|
|
|
|
factory _SpotubeFullPlaylistObject.fromJson(Map<String, dynamic> json) =
|
|
_$SpotubeFullPlaylistObjectImpl.fromJson;
|
|
|
|
@override
|
|
String get id;
|
|
@override
|
|
String get name;
|
|
@override
|
|
String get description;
|
|
@override
|
|
String get externalUri;
|
|
@override
|
|
SpotubeUserObject get owner;
|
|
@override
|
|
List<SpotubeImageObject> get images;
|
|
@override
|
|
List<SpotubeUserObject> get collaborators;
|
|
@override
|
|
bool get collaborative;
|
|
@override
|
|
bool get public;
|
|
|
|
/// Create a copy of SpotubeFullPlaylistObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$SpotubeFullPlaylistObjectImplCopyWith<_$SpotubeFullPlaylistObjectImpl>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
SpotubeSimplePlaylistObject _$SpotubeSimplePlaylistObjectFromJson(
|
|
Map<String, dynamic> json) {
|
|
return _SpotubeSimplePlaylistObject.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$SpotubeSimplePlaylistObject {
|
|
String get id => throw _privateConstructorUsedError;
|
|
String get name => throw _privateConstructorUsedError;
|
|
String get description => throw _privateConstructorUsedError;
|
|
String get externalUri => throw _privateConstructorUsedError;
|
|
SpotubeUserObject get owner => throw _privateConstructorUsedError;
|
|
List<SpotubeImageObject> get images => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this SpotubeSimplePlaylistObject to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of SpotubeSimplePlaylistObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$SpotubeSimplePlaylistObjectCopyWith<SpotubeSimplePlaylistObject>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $SpotubeSimplePlaylistObjectCopyWith<$Res> {
|
|
factory $SpotubeSimplePlaylistObjectCopyWith(
|
|
SpotubeSimplePlaylistObject value,
|
|
$Res Function(SpotubeSimplePlaylistObject) then) =
|
|
_$SpotubeSimplePlaylistObjectCopyWithImpl<$Res,
|
|
SpotubeSimplePlaylistObject>;
|
|
@useResult
|
|
$Res call(
|
|
{String id,
|
|
String name,
|
|
String description,
|
|
String externalUri,
|
|
SpotubeUserObject owner,
|
|
List<SpotubeImageObject> images});
|
|
|
|
$SpotubeUserObjectCopyWith<$Res> get owner;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$SpotubeSimplePlaylistObjectCopyWithImpl<$Res,
|
|
$Val extends SpotubeSimplePlaylistObject>
|
|
implements $SpotubeSimplePlaylistObjectCopyWith<$Res> {
|
|
_$SpotubeSimplePlaylistObjectCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of SpotubeSimplePlaylistObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? name = null,
|
|
Object? description = null,
|
|
Object? externalUri = null,
|
|
Object? owner = null,
|
|
Object? images = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
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,
|
|
description: null == description
|
|
? _value.description
|
|
: description // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
externalUri: null == externalUri
|
|
? _value.externalUri
|
|
: externalUri // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
owner: null == owner
|
|
? _value.owner
|
|
: owner // ignore: cast_nullable_to_non_nullable
|
|
as SpotubeUserObject,
|
|
images: null == images
|
|
? _value.images
|
|
: images // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeImageObject>,
|
|
) as $Val);
|
|
}
|
|
|
|
/// Create a copy of SpotubeSimplePlaylistObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
$SpotubeUserObjectCopyWith<$Res> get owner {
|
|
return $SpotubeUserObjectCopyWith<$Res>(_value.owner, (value) {
|
|
return _then(_value.copyWith(owner: value) as $Val);
|
|
});
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$SpotubeSimplePlaylistObjectImplCopyWith<$Res>
|
|
implements $SpotubeSimplePlaylistObjectCopyWith<$Res> {
|
|
factory _$$SpotubeSimplePlaylistObjectImplCopyWith(
|
|
_$SpotubeSimplePlaylistObjectImpl value,
|
|
$Res Function(_$SpotubeSimplePlaylistObjectImpl) then) =
|
|
__$$SpotubeSimplePlaylistObjectImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{String id,
|
|
String name,
|
|
String description,
|
|
String externalUri,
|
|
SpotubeUserObject owner,
|
|
List<SpotubeImageObject> images});
|
|
|
|
@override
|
|
$SpotubeUserObjectCopyWith<$Res> get owner;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$SpotubeSimplePlaylistObjectImplCopyWithImpl<$Res>
|
|
extends _$SpotubeSimplePlaylistObjectCopyWithImpl<$Res,
|
|
_$SpotubeSimplePlaylistObjectImpl>
|
|
implements _$$SpotubeSimplePlaylistObjectImplCopyWith<$Res> {
|
|
__$$SpotubeSimplePlaylistObjectImplCopyWithImpl(
|
|
_$SpotubeSimplePlaylistObjectImpl _value,
|
|
$Res Function(_$SpotubeSimplePlaylistObjectImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of SpotubeSimplePlaylistObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? name = null,
|
|
Object? description = null,
|
|
Object? externalUri = null,
|
|
Object? owner = null,
|
|
Object? images = null,
|
|
}) {
|
|
return _then(_$SpotubeSimplePlaylistObjectImpl(
|
|
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,
|
|
description: null == description
|
|
? _value.description
|
|
: description // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
externalUri: null == externalUri
|
|
? _value.externalUri
|
|
: externalUri // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
owner: null == owner
|
|
? _value.owner
|
|
: owner // ignore: cast_nullable_to_non_nullable
|
|
as SpotubeUserObject,
|
|
images: null == images
|
|
? _value._images
|
|
: images // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeImageObject>,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$SpotubeSimplePlaylistObjectImpl
|
|
implements _SpotubeSimplePlaylistObject {
|
|
_$SpotubeSimplePlaylistObjectImpl(
|
|
{required this.id,
|
|
required this.name,
|
|
required this.description,
|
|
required this.externalUri,
|
|
required this.owner,
|
|
final List<SpotubeImageObject> images = const []})
|
|
: _images = images;
|
|
|
|
factory _$SpotubeSimplePlaylistObjectImpl.fromJson(
|
|
Map<String, dynamic> json) =>
|
|
_$$SpotubeSimplePlaylistObjectImplFromJson(json);
|
|
|
|
@override
|
|
final String id;
|
|
@override
|
|
final String name;
|
|
@override
|
|
final String description;
|
|
@override
|
|
final String externalUri;
|
|
@override
|
|
final SpotubeUserObject owner;
|
|
final List<SpotubeImageObject> _images;
|
|
@override
|
|
@JsonKey()
|
|
List<SpotubeImageObject> get images {
|
|
if (_images is EqualUnmodifiableListView) return _images;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_images);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SpotubeSimplePlaylistObject(id: $id, name: $name, description: $description, externalUri: $externalUri, owner: $owner, images: $images)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$SpotubeSimplePlaylistObjectImpl &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
(identical(other.description, description) ||
|
|
other.description == description) &&
|
|
(identical(other.externalUri, externalUri) ||
|
|
other.externalUri == externalUri) &&
|
|
(identical(other.owner, owner) || other.owner == owner) &&
|
|
const DeepCollectionEquality().equals(other._images, _images));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, id, name, description,
|
|
externalUri, owner, const DeepCollectionEquality().hash(_images));
|
|
|
|
/// Create a copy of SpotubeSimplePlaylistObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$SpotubeSimplePlaylistObjectImplCopyWith<_$SpotubeSimplePlaylistObjectImpl>
|
|
get copyWith => __$$SpotubeSimplePlaylistObjectImplCopyWithImpl<
|
|
_$SpotubeSimplePlaylistObjectImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$SpotubeSimplePlaylistObjectImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _SpotubeSimplePlaylistObject
|
|
implements SpotubeSimplePlaylistObject {
|
|
factory _SpotubeSimplePlaylistObject(
|
|
{required final String id,
|
|
required final String name,
|
|
required final String description,
|
|
required final String externalUri,
|
|
required final SpotubeUserObject owner,
|
|
final List<SpotubeImageObject> images}) =
|
|
_$SpotubeSimplePlaylistObjectImpl;
|
|
|
|
factory _SpotubeSimplePlaylistObject.fromJson(Map<String, dynamic> json) =
|
|
_$SpotubeSimplePlaylistObjectImpl.fromJson;
|
|
|
|
@override
|
|
String get id;
|
|
@override
|
|
String get name;
|
|
@override
|
|
String get description;
|
|
@override
|
|
String get externalUri;
|
|
@override
|
|
SpotubeUserObject get owner;
|
|
@override
|
|
List<SpotubeImageObject> get images;
|
|
|
|
/// Create a copy of SpotubeSimplePlaylistObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$SpotubeSimplePlaylistObjectImplCopyWith<_$SpotubeSimplePlaylistObjectImpl>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
SpotubeSearchResponseObject _$SpotubeSearchResponseObjectFromJson(
|
|
Map<String, dynamic> json) {
|
|
return _SpotubeSearchResponseObject.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$SpotubeSearchResponseObject {
|
|
List<SpotubeSimpleAlbumObject> get albums =>
|
|
throw _privateConstructorUsedError;
|
|
List<SpotubeSimpleArtistObject> get artists =>
|
|
throw _privateConstructorUsedError;
|
|
List<SpotubeSimplePlaylistObject> get playlists =>
|
|
throw _privateConstructorUsedError;
|
|
List<SpotubeSimpleTrackObject> get tracks =>
|
|
throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this SpotubeSearchResponseObject to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of SpotubeSearchResponseObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$SpotubeSearchResponseObjectCopyWith<SpotubeSearchResponseObject>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $SpotubeSearchResponseObjectCopyWith<$Res> {
|
|
factory $SpotubeSearchResponseObjectCopyWith(
|
|
SpotubeSearchResponseObject value,
|
|
$Res Function(SpotubeSearchResponseObject) then) =
|
|
_$SpotubeSearchResponseObjectCopyWithImpl<$Res,
|
|
SpotubeSearchResponseObject>;
|
|
@useResult
|
|
$Res call(
|
|
{List<SpotubeSimpleAlbumObject> albums,
|
|
List<SpotubeSimpleArtistObject> artists,
|
|
List<SpotubeSimplePlaylistObject> playlists,
|
|
List<SpotubeSimpleTrackObject> tracks});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$SpotubeSearchResponseObjectCopyWithImpl<$Res,
|
|
$Val extends SpotubeSearchResponseObject>
|
|
implements $SpotubeSearchResponseObjectCopyWith<$Res> {
|
|
_$SpotubeSearchResponseObjectCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of SpotubeSearchResponseObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? albums = null,
|
|
Object? artists = null,
|
|
Object? playlists = null,
|
|
Object? tracks = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
albums: null == albums
|
|
? _value.albums
|
|
: albums // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeSimpleAlbumObject>,
|
|
artists: null == artists
|
|
? _value.artists
|
|
: artists // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeSimpleArtistObject>,
|
|
playlists: null == playlists
|
|
? _value.playlists
|
|
: playlists // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeSimplePlaylistObject>,
|
|
tracks: null == tracks
|
|
? _value.tracks
|
|
: tracks // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeSimpleTrackObject>,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$SpotubeSearchResponseObjectImplCopyWith<$Res>
|
|
implements $SpotubeSearchResponseObjectCopyWith<$Res> {
|
|
factory _$$SpotubeSearchResponseObjectImplCopyWith(
|
|
_$SpotubeSearchResponseObjectImpl value,
|
|
$Res Function(_$SpotubeSearchResponseObjectImpl) then) =
|
|
__$$SpotubeSearchResponseObjectImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{List<SpotubeSimpleAlbumObject> albums,
|
|
List<SpotubeSimpleArtistObject> artists,
|
|
List<SpotubeSimplePlaylistObject> playlists,
|
|
List<SpotubeSimpleTrackObject> tracks});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$SpotubeSearchResponseObjectImplCopyWithImpl<$Res>
|
|
extends _$SpotubeSearchResponseObjectCopyWithImpl<$Res,
|
|
_$SpotubeSearchResponseObjectImpl>
|
|
implements _$$SpotubeSearchResponseObjectImplCopyWith<$Res> {
|
|
__$$SpotubeSearchResponseObjectImplCopyWithImpl(
|
|
_$SpotubeSearchResponseObjectImpl _value,
|
|
$Res Function(_$SpotubeSearchResponseObjectImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of SpotubeSearchResponseObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? albums = null,
|
|
Object? artists = null,
|
|
Object? playlists = null,
|
|
Object? tracks = null,
|
|
}) {
|
|
return _then(_$SpotubeSearchResponseObjectImpl(
|
|
albums: null == albums
|
|
? _value._albums
|
|
: albums // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeSimpleAlbumObject>,
|
|
artists: null == artists
|
|
? _value._artists
|
|
: artists // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeSimpleArtistObject>,
|
|
playlists: null == playlists
|
|
? _value._playlists
|
|
: playlists // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeSimplePlaylistObject>,
|
|
tracks: null == tracks
|
|
? _value._tracks
|
|
: tracks // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeSimpleTrackObject>,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$SpotubeSearchResponseObjectImpl
|
|
implements _SpotubeSearchResponseObject {
|
|
_$SpotubeSearchResponseObjectImpl(
|
|
{required final List<SpotubeSimpleAlbumObject> albums,
|
|
required final List<SpotubeSimpleArtistObject> artists,
|
|
required final List<SpotubeSimplePlaylistObject> playlists,
|
|
required final List<SpotubeSimpleTrackObject> tracks})
|
|
: _albums = albums,
|
|
_artists = artists,
|
|
_playlists = playlists,
|
|
_tracks = tracks;
|
|
|
|
factory _$SpotubeSearchResponseObjectImpl.fromJson(
|
|
Map<String, dynamic> json) =>
|
|
_$$SpotubeSearchResponseObjectImplFromJson(json);
|
|
|
|
final List<SpotubeSimpleAlbumObject> _albums;
|
|
@override
|
|
List<SpotubeSimpleAlbumObject> get albums {
|
|
if (_albums is EqualUnmodifiableListView) return _albums;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_albums);
|
|
}
|
|
|
|
final List<SpotubeSimpleArtistObject> _artists;
|
|
@override
|
|
List<SpotubeSimpleArtistObject> get artists {
|
|
if (_artists is EqualUnmodifiableListView) return _artists;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_artists);
|
|
}
|
|
|
|
final List<SpotubeSimplePlaylistObject> _playlists;
|
|
@override
|
|
List<SpotubeSimplePlaylistObject> get playlists {
|
|
if (_playlists is EqualUnmodifiableListView) return _playlists;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_playlists);
|
|
}
|
|
|
|
final List<SpotubeSimpleTrackObject> _tracks;
|
|
@override
|
|
List<SpotubeSimpleTrackObject> get tracks {
|
|
if (_tracks is EqualUnmodifiableListView) return _tracks;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_tracks);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SpotubeSearchResponseObject(albums: $albums, artists: $artists, playlists: $playlists, tracks: $tracks)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$SpotubeSearchResponseObjectImpl &&
|
|
const DeepCollectionEquality().equals(other._albums, _albums) &&
|
|
const DeepCollectionEquality().equals(other._artists, _artists) &&
|
|
const DeepCollectionEquality()
|
|
.equals(other._playlists, _playlists) &&
|
|
const DeepCollectionEquality().equals(other._tracks, _tracks));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
const DeepCollectionEquality().hash(_albums),
|
|
const DeepCollectionEquality().hash(_artists),
|
|
const DeepCollectionEquality().hash(_playlists),
|
|
const DeepCollectionEquality().hash(_tracks));
|
|
|
|
/// Create a copy of SpotubeSearchResponseObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$SpotubeSearchResponseObjectImplCopyWith<_$SpotubeSearchResponseObjectImpl>
|
|
get copyWith => __$$SpotubeSearchResponseObjectImplCopyWithImpl<
|
|
_$SpotubeSearchResponseObjectImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$SpotubeSearchResponseObjectImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _SpotubeSearchResponseObject
|
|
implements SpotubeSearchResponseObject {
|
|
factory _SpotubeSearchResponseObject(
|
|
{required final List<SpotubeSimpleAlbumObject> albums,
|
|
required final List<SpotubeSimpleArtistObject> artists,
|
|
required final List<SpotubeSimplePlaylistObject> playlists,
|
|
required final List<SpotubeSimpleTrackObject> tracks}) =
|
|
_$SpotubeSearchResponseObjectImpl;
|
|
|
|
factory _SpotubeSearchResponseObject.fromJson(Map<String, dynamic> json) =
|
|
_$SpotubeSearchResponseObjectImpl.fromJson;
|
|
|
|
@override
|
|
List<SpotubeSimpleAlbumObject> get albums;
|
|
@override
|
|
List<SpotubeSimpleArtistObject> get artists;
|
|
@override
|
|
List<SpotubeSimplePlaylistObject> get playlists;
|
|
@override
|
|
List<SpotubeSimpleTrackObject> get tracks;
|
|
|
|
/// Create a copy of SpotubeSearchResponseObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$SpotubeSearchResponseObjectImplCopyWith<_$SpotubeSearchResponseObjectImpl>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
SpotubeFullTrackObject _$SpotubeFullTrackObjectFromJson(
|
|
Map<String, dynamic> json) {
|
|
return _SpotubeFullTrackObject.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$SpotubeFullTrackObject {
|
|
String get id => throw _privateConstructorUsedError;
|
|
String get name => throw _privateConstructorUsedError;
|
|
String get externalUri => throw _privateConstructorUsedError;
|
|
List<SpotubeSimpleArtistObject> get artists =>
|
|
throw _privateConstructorUsedError;
|
|
SpotubeSimpleAlbumObject get album => throw _privateConstructorUsedError;
|
|
int get durationMs => throw _privateConstructorUsedError;
|
|
String get isrc => throw _privateConstructorUsedError;
|
|
bool get explicit => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this SpotubeFullTrackObject to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of SpotubeFullTrackObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$SpotubeFullTrackObjectCopyWith<SpotubeFullTrackObject> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $SpotubeFullTrackObjectCopyWith<$Res> {
|
|
factory $SpotubeFullTrackObjectCopyWith(SpotubeFullTrackObject value,
|
|
$Res Function(SpotubeFullTrackObject) then) =
|
|
_$SpotubeFullTrackObjectCopyWithImpl<$Res, SpotubeFullTrackObject>;
|
|
@useResult
|
|
$Res call(
|
|
{String id,
|
|
String name,
|
|
String externalUri,
|
|
List<SpotubeSimpleArtistObject> artists,
|
|
SpotubeSimpleAlbumObject album,
|
|
int durationMs,
|
|
String isrc,
|
|
bool explicit});
|
|
|
|
$SpotubeSimpleAlbumObjectCopyWith<$Res> get album;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$SpotubeFullTrackObjectCopyWithImpl<$Res,
|
|
$Val extends SpotubeFullTrackObject>
|
|
implements $SpotubeFullTrackObjectCopyWith<$Res> {
|
|
_$SpotubeFullTrackObjectCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of SpotubeFullTrackObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? name = null,
|
|
Object? externalUri = null,
|
|
Object? artists = null,
|
|
Object? album = null,
|
|
Object? durationMs = null,
|
|
Object? isrc = null,
|
|
Object? explicit = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
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,
|
|
externalUri: null == externalUri
|
|
? _value.externalUri
|
|
: externalUri // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
artists: null == artists
|
|
? _value.artists
|
|
: artists // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeSimpleArtistObject>,
|
|
album: null == album
|
|
? _value.album
|
|
: album // ignore: cast_nullable_to_non_nullable
|
|
as SpotubeSimpleAlbumObject,
|
|
durationMs: null == durationMs
|
|
? _value.durationMs
|
|
: durationMs // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
isrc: null == isrc
|
|
? _value.isrc
|
|
: isrc // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
explicit: null == explicit
|
|
? _value.explicit
|
|
: explicit // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
) as $Val);
|
|
}
|
|
|
|
/// Create a copy of SpotubeFullTrackObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
$SpotubeSimpleAlbumObjectCopyWith<$Res> get album {
|
|
return $SpotubeSimpleAlbumObjectCopyWith<$Res>(_value.album, (value) {
|
|
return _then(_value.copyWith(album: value) as $Val);
|
|
});
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$SpotubeFullTrackObjectImplCopyWith<$Res>
|
|
implements $SpotubeFullTrackObjectCopyWith<$Res> {
|
|
factory _$$SpotubeFullTrackObjectImplCopyWith(
|
|
_$SpotubeFullTrackObjectImpl value,
|
|
$Res Function(_$SpotubeFullTrackObjectImpl) then) =
|
|
__$$SpotubeFullTrackObjectImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{String id,
|
|
String name,
|
|
String externalUri,
|
|
List<SpotubeSimpleArtistObject> artists,
|
|
SpotubeSimpleAlbumObject album,
|
|
int durationMs,
|
|
String isrc,
|
|
bool explicit});
|
|
|
|
@override
|
|
$SpotubeSimpleAlbumObjectCopyWith<$Res> get album;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$SpotubeFullTrackObjectImplCopyWithImpl<$Res>
|
|
extends _$SpotubeFullTrackObjectCopyWithImpl<$Res,
|
|
_$SpotubeFullTrackObjectImpl>
|
|
implements _$$SpotubeFullTrackObjectImplCopyWith<$Res> {
|
|
__$$SpotubeFullTrackObjectImplCopyWithImpl(
|
|
_$SpotubeFullTrackObjectImpl _value,
|
|
$Res Function(_$SpotubeFullTrackObjectImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of SpotubeFullTrackObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? name = null,
|
|
Object? externalUri = null,
|
|
Object? artists = null,
|
|
Object? album = null,
|
|
Object? durationMs = null,
|
|
Object? isrc = null,
|
|
Object? explicit = null,
|
|
}) {
|
|
return _then(_$SpotubeFullTrackObjectImpl(
|
|
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,
|
|
externalUri: null == externalUri
|
|
? _value.externalUri
|
|
: externalUri // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
artists: null == artists
|
|
? _value._artists
|
|
: artists // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeSimpleArtistObject>,
|
|
album: null == album
|
|
? _value.album
|
|
: album // ignore: cast_nullable_to_non_nullable
|
|
as SpotubeSimpleAlbumObject,
|
|
durationMs: null == durationMs
|
|
? _value.durationMs
|
|
: durationMs // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
isrc: null == isrc
|
|
? _value.isrc
|
|
: isrc // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
explicit: null == explicit
|
|
? _value.explicit
|
|
: explicit // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$SpotubeFullTrackObjectImpl implements _SpotubeFullTrackObject {
|
|
_$SpotubeFullTrackObjectImpl(
|
|
{required this.id,
|
|
required this.name,
|
|
required this.externalUri,
|
|
final List<SpotubeSimpleArtistObject> artists = const [],
|
|
required this.album,
|
|
required this.durationMs,
|
|
required this.isrc,
|
|
required this.explicit})
|
|
: _artists = artists;
|
|
|
|
factory _$SpotubeFullTrackObjectImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$SpotubeFullTrackObjectImplFromJson(json);
|
|
|
|
@override
|
|
final String id;
|
|
@override
|
|
final String name;
|
|
@override
|
|
final String externalUri;
|
|
final List<SpotubeSimpleArtistObject> _artists;
|
|
@override
|
|
@JsonKey()
|
|
List<SpotubeSimpleArtistObject> get artists {
|
|
if (_artists is EqualUnmodifiableListView) return _artists;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_artists);
|
|
}
|
|
|
|
@override
|
|
final SpotubeSimpleAlbumObject album;
|
|
@override
|
|
final int durationMs;
|
|
@override
|
|
final String isrc;
|
|
@override
|
|
final bool explicit;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SpotubeFullTrackObject(id: $id, name: $name, externalUri: $externalUri, artists: $artists, album: $album, durationMs: $durationMs, isrc: $isrc, explicit: $explicit)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$SpotubeFullTrackObjectImpl &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
(identical(other.externalUri, externalUri) ||
|
|
other.externalUri == externalUri) &&
|
|
const DeepCollectionEquality().equals(other._artists, _artists) &&
|
|
(identical(other.album, album) || other.album == album) &&
|
|
(identical(other.durationMs, durationMs) ||
|
|
other.durationMs == durationMs) &&
|
|
(identical(other.isrc, isrc) || other.isrc == isrc) &&
|
|
(identical(other.explicit, explicit) ||
|
|
other.explicit == explicit));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
id,
|
|
name,
|
|
externalUri,
|
|
const DeepCollectionEquality().hash(_artists),
|
|
album,
|
|
durationMs,
|
|
isrc,
|
|
explicit);
|
|
|
|
/// Create a copy of SpotubeFullTrackObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$SpotubeFullTrackObjectImplCopyWith<_$SpotubeFullTrackObjectImpl>
|
|
get copyWith => __$$SpotubeFullTrackObjectImplCopyWithImpl<
|
|
_$SpotubeFullTrackObjectImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$SpotubeFullTrackObjectImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _SpotubeFullTrackObject implements SpotubeFullTrackObject {
|
|
factory _SpotubeFullTrackObject(
|
|
{required final String id,
|
|
required final String name,
|
|
required final String externalUri,
|
|
final List<SpotubeSimpleArtistObject> artists,
|
|
required final SpotubeSimpleAlbumObject album,
|
|
required final int durationMs,
|
|
required final String isrc,
|
|
required final bool explicit}) = _$SpotubeFullTrackObjectImpl;
|
|
|
|
factory _SpotubeFullTrackObject.fromJson(Map<String, dynamic> json) =
|
|
_$SpotubeFullTrackObjectImpl.fromJson;
|
|
|
|
@override
|
|
String get id;
|
|
@override
|
|
String get name;
|
|
@override
|
|
String get externalUri;
|
|
@override
|
|
List<SpotubeSimpleArtistObject> get artists;
|
|
@override
|
|
SpotubeSimpleAlbumObject get album;
|
|
@override
|
|
int get durationMs;
|
|
@override
|
|
String get isrc;
|
|
@override
|
|
bool get explicit;
|
|
|
|
/// Create a copy of SpotubeFullTrackObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$SpotubeFullTrackObjectImplCopyWith<_$SpotubeFullTrackObjectImpl>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
SpotubeSimpleTrackObject _$SpotubeSimpleTrackObjectFromJson(
|
|
Map<String, dynamic> json) {
|
|
return _SpotubeSimpleTrackObject.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$SpotubeSimpleTrackObject {
|
|
String get id => throw _privateConstructorUsedError;
|
|
String get name => throw _privateConstructorUsedError;
|
|
String get externalUri => throw _privateConstructorUsedError;
|
|
int get durationMs => throw _privateConstructorUsedError;
|
|
bool get explicit => throw _privateConstructorUsedError;
|
|
List<SpotubeSimpleArtistObject> get artists =>
|
|
throw _privateConstructorUsedError;
|
|
SpotubeSimpleAlbumObject? get album => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this SpotubeSimpleTrackObject to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of SpotubeSimpleTrackObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$SpotubeSimpleTrackObjectCopyWith<SpotubeSimpleTrackObject> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $SpotubeSimpleTrackObjectCopyWith<$Res> {
|
|
factory $SpotubeSimpleTrackObjectCopyWith(SpotubeSimpleTrackObject value,
|
|
$Res Function(SpotubeSimpleTrackObject) then) =
|
|
_$SpotubeSimpleTrackObjectCopyWithImpl<$Res, SpotubeSimpleTrackObject>;
|
|
@useResult
|
|
$Res call(
|
|
{String id,
|
|
String name,
|
|
String externalUri,
|
|
int durationMs,
|
|
bool explicit,
|
|
List<SpotubeSimpleArtistObject> artists,
|
|
SpotubeSimpleAlbumObject? album});
|
|
|
|
$SpotubeSimpleAlbumObjectCopyWith<$Res>? get album;
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$SpotubeSimpleTrackObjectCopyWithImpl<$Res,
|
|
$Val extends SpotubeSimpleTrackObject>
|
|
implements $SpotubeSimpleTrackObjectCopyWith<$Res> {
|
|
_$SpotubeSimpleTrackObjectCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of SpotubeSimpleTrackObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? name = null,
|
|
Object? externalUri = null,
|
|
Object? durationMs = null,
|
|
Object? explicit = null,
|
|
Object? artists = null,
|
|
Object? album = freezed,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
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,
|
|
externalUri: null == externalUri
|
|
? _value.externalUri
|
|
: externalUri // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
durationMs: null == durationMs
|
|
? _value.durationMs
|
|
: durationMs // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
explicit: null == explicit
|
|
? _value.explicit
|
|
: explicit // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
artists: null == artists
|
|
? _value.artists
|
|
: artists // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeSimpleArtistObject>,
|
|
album: freezed == album
|
|
? _value.album
|
|
: album // ignore: cast_nullable_to_non_nullable
|
|
as SpotubeSimpleAlbumObject?,
|
|
) as $Val);
|
|
}
|
|
|
|
/// Create a copy of SpotubeSimpleTrackObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
$SpotubeSimpleAlbumObjectCopyWith<$Res>? get album {
|
|
if (_value.album == null) {
|
|
return null;
|
|
}
|
|
|
|
return $SpotubeSimpleAlbumObjectCopyWith<$Res>(_value.album!, (value) {
|
|
return _then(_value.copyWith(album: value) as $Val);
|
|
});
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$SpotubeSimpleTrackObjectImplCopyWith<$Res>
|
|
implements $SpotubeSimpleTrackObjectCopyWith<$Res> {
|
|
factory _$$SpotubeSimpleTrackObjectImplCopyWith(
|
|
_$SpotubeSimpleTrackObjectImpl value,
|
|
$Res Function(_$SpotubeSimpleTrackObjectImpl) then) =
|
|
__$$SpotubeSimpleTrackObjectImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{String id,
|
|
String name,
|
|
String externalUri,
|
|
int durationMs,
|
|
bool explicit,
|
|
List<SpotubeSimpleArtistObject> artists,
|
|
SpotubeSimpleAlbumObject? album});
|
|
|
|
@override
|
|
$SpotubeSimpleAlbumObjectCopyWith<$Res>? get album;
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$SpotubeSimpleTrackObjectImplCopyWithImpl<$Res>
|
|
extends _$SpotubeSimpleTrackObjectCopyWithImpl<$Res,
|
|
_$SpotubeSimpleTrackObjectImpl>
|
|
implements _$$SpotubeSimpleTrackObjectImplCopyWith<$Res> {
|
|
__$$SpotubeSimpleTrackObjectImplCopyWithImpl(
|
|
_$SpotubeSimpleTrackObjectImpl _value,
|
|
$Res Function(_$SpotubeSimpleTrackObjectImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of SpotubeSimpleTrackObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? name = null,
|
|
Object? externalUri = null,
|
|
Object? durationMs = null,
|
|
Object? explicit = null,
|
|
Object? artists = null,
|
|
Object? album = freezed,
|
|
}) {
|
|
return _then(_$SpotubeSimpleTrackObjectImpl(
|
|
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,
|
|
externalUri: null == externalUri
|
|
? _value.externalUri
|
|
: externalUri // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
durationMs: null == durationMs
|
|
? _value.durationMs
|
|
: durationMs // ignore: cast_nullable_to_non_nullable
|
|
as int,
|
|
explicit: null == explicit
|
|
? _value.explicit
|
|
: explicit // ignore: cast_nullable_to_non_nullable
|
|
as bool,
|
|
artists: null == artists
|
|
? _value._artists
|
|
: artists // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeSimpleArtistObject>,
|
|
album: freezed == album
|
|
? _value.album
|
|
: album // ignore: cast_nullable_to_non_nullable
|
|
as SpotubeSimpleAlbumObject?,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$SpotubeSimpleTrackObjectImpl implements _SpotubeSimpleTrackObject {
|
|
_$SpotubeSimpleTrackObjectImpl(
|
|
{required this.id,
|
|
required this.name,
|
|
required this.externalUri,
|
|
required this.durationMs,
|
|
required this.explicit,
|
|
final List<SpotubeSimpleArtistObject> artists = const [],
|
|
this.album})
|
|
: _artists = artists;
|
|
|
|
factory _$SpotubeSimpleTrackObjectImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$SpotubeSimpleTrackObjectImplFromJson(json);
|
|
|
|
@override
|
|
final String id;
|
|
@override
|
|
final String name;
|
|
@override
|
|
final String externalUri;
|
|
@override
|
|
final int durationMs;
|
|
@override
|
|
final bool explicit;
|
|
final List<SpotubeSimpleArtistObject> _artists;
|
|
@override
|
|
@JsonKey()
|
|
List<SpotubeSimpleArtistObject> get artists {
|
|
if (_artists is EqualUnmodifiableListView) return _artists;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_artists);
|
|
}
|
|
|
|
@override
|
|
final SpotubeSimpleAlbumObject? album;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SpotubeSimpleTrackObject(id: $id, name: $name, externalUri: $externalUri, durationMs: $durationMs, explicit: $explicit, artists: $artists, album: $album)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$SpotubeSimpleTrackObjectImpl &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
(identical(other.externalUri, externalUri) ||
|
|
other.externalUri == externalUri) &&
|
|
(identical(other.durationMs, durationMs) ||
|
|
other.durationMs == durationMs) &&
|
|
(identical(other.explicit, explicit) ||
|
|
other.explicit == explicit) &&
|
|
const DeepCollectionEquality().equals(other._artists, _artists) &&
|
|
(identical(other.album, album) || other.album == album));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
id,
|
|
name,
|
|
externalUri,
|
|
durationMs,
|
|
explicit,
|
|
const DeepCollectionEquality().hash(_artists),
|
|
album);
|
|
|
|
/// Create a copy of SpotubeSimpleTrackObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$SpotubeSimpleTrackObjectImplCopyWith<_$SpotubeSimpleTrackObjectImpl>
|
|
get copyWith => __$$SpotubeSimpleTrackObjectImplCopyWithImpl<
|
|
_$SpotubeSimpleTrackObjectImpl>(this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$SpotubeSimpleTrackObjectImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _SpotubeSimpleTrackObject implements SpotubeSimpleTrackObject {
|
|
factory _SpotubeSimpleTrackObject(
|
|
{required final String id,
|
|
required final String name,
|
|
required final String externalUri,
|
|
required final int durationMs,
|
|
required final bool explicit,
|
|
final List<SpotubeSimpleArtistObject> artists,
|
|
final SpotubeSimpleAlbumObject? album}) = _$SpotubeSimpleTrackObjectImpl;
|
|
|
|
factory _SpotubeSimpleTrackObject.fromJson(Map<String, dynamic> json) =
|
|
_$SpotubeSimpleTrackObjectImpl.fromJson;
|
|
|
|
@override
|
|
String get id;
|
|
@override
|
|
String get name;
|
|
@override
|
|
String get externalUri;
|
|
@override
|
|
int get durationMs;
|
|
@override
|
|
bool get explicit;
|
|
@override
|
|
List<SpotubeSimpleArtistObject> get artists;
|
|
@override
|
|
SpotubeSimpleAlbumObject? get album;
|
|
|
|
/// Create a copy of SpotubeSimpleTrackObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$SpotubeSimpleTrackObjectImplCopyWith<_$SpotubeSimpleTrackObjectImpl>
|
|
get copyWith => throw _privateConstructorUsedError;
|
|
}
|
|
|
|
SpotubeUserObject _$SpotubeUserObjectFromJson(Map<String, dynamic> json) {
|
|
return _SpotubeUserObject.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$SpotubeUserObject {
|
|
String get id => throw _privateConstructorUsedError;
|
|
String get name => throw _privateConstructorUsedError;
|
|
List<SpotubeImageObject> get images => throw _privateConstructorUsedError;
|
|
String get externalUri => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this SpotubeUserObject to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of SpotubeUserObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$SpotubeUserObjectCopyWith<SpotubeUserObject> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $SpotubeUserObjectCopyWith<$Res> {
|
|
factory $SpotubeUserObjectCopyWith(
|
|
SpotubeUserObject value, $Res Function(SpotubeUserObject) then) =
|
|
_$SpotubeUserObjectCopyWithImpl<$Res, SpotubeUserObject>;
|
|
@useResult
|
|
$Res call(
|
|
{String id,
|
|
String name,
|
|
List<SpotubeImageObject> images,
|
|
String externalUri});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$SpotubeUserObjectCopyWithImpl<$Res, $Val extends SpotubeUserObject>
|
|
implements $SpotubeUserObjectCopyWith<$Res> {
|
|
_$SpotubeUserObjectCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of SpotubeUserObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? name = null,
|
|
Object? images = null,
|
|
Object? externalUri = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
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,
|
|
images: null == images
|
|
? _value.images
|
|
: images // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeImageObject>,
|
|
externalUri: null == externalUri
|
|
? _value.externalUri
|
|
: externalUri // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$SpotubeUserObjectImplCopyWith<$Res>
|
|
implements $SpotubeUserObjectCopyWith<$Res> {
|
|
factory _$$SpotubeUserObjectImplCopyWith(_$SpotubeUserObjectImpl value,
|
|
$Res Function(_$SpotubeUserObjectImpl) then) =
|
|
__$$SpotubeUserObjectImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{String id,
|
|
String name,
|
|
List<SpotubeImageObject> images,
|
|
String externalUri});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$SpotubeUserObjectImplCopyWithImpl<$Res>
|
|
extends _$SpotubeUserObjectCopyWithImpl<$Res, _$SpotubeUserObjectImpl>
|
|
implements _$$SpotubeUserObjectImplCopyWith<$Res> {
|
|
__$$SpotubeUserObjectImplCopyWithImpl(_$SpotubeUserObjectImpl _value,
|
|
$Res Function(_$SpotubeUserObjectImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of SpotubeUserObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? id = null,
|
|
Object? name = null,
|
|
Object? images = null,
|
|
Object? externalUri = null,
|
|
}) {
|
|
return _then(_$SpotubeUserObjectImpl(
|
|
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,
|
|
images: null == images
|
|
? _value._images
|
|
: images // ignore: cast_nullable_to_non_nullable
|
|
as List<SpotubeImageObject>,
|
|
externalUri: null == externalUri
|
|
? _value.externalUri
|
|
: externalUri // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$SpotubeUserObjectImpl implements _SpotubeUserObject {
|
|
_$SpotubeUserObjectImpl(
|
|
{required this.id,
|
|
required this.name,
|
|
final List<SpotubeImageObject> images = const [],
|
|
required this.externalUri})
|
|
: _images = images;
|
|
|
|
factory _$SpotubeUserObjectImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$SpotubeUserObjectImplFromJson(json);
|
|
|
|
@override
|
|
final String id;
|
|
@override
|
|
final String name;
|
|
final List<SpotubeImageObject> _images;
|
|
@override
|
|
@JsonKey()
|
|
List<SpotubeImageObject> get images {
|
|
if (_images is EqualUnmodifiableListView) return _images;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_images);
|
|
}
|
|
|
|
@override
|
|
final String externalUri;
|
|
|
|
@override
|
|
String toString() {
|
|
return 'SpotubeUserObject(id: $id, name: $name, images: $images, externalUri: $externalUri)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$SpotubeUserObjectImpl &&
|
|
(identical(other.id, id) || other.id == id) &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
const DeepCollectionEquality().equals(other._images, _images) &&
|
|
(identical(other.externalUri, externalUri) ||
|
|
other.externalUri == externalUri));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(runtimeType, id, name,
|
|
const DeepCollectionEquality().hash(_images), externalUri);
|
|
|
|
/// Create a copy of SpotubeUserObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$SpotubeUserObjectImplCopyWith<_$SpotubeUserObjectImpl> get copyWith =>
|
|
__$$SpotubeUserObjectImplCopyWithImpl<_$SpotubeUserObjectImpl>(
|
|
this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$SpotubeUserObjectImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _SpotubeUserObject implements SpotubeUserObject {
|
|
factory _SpotubeUserObject(
|
|
{required final String id,
|
|
required final String name,
|
|
final List<SpotubeImageObject> images,
|
|
required final String externalUri}) = _$SpotubeUserObjectImpl;
|
|
|
|
factory _SpotubeUserObject.fromJson(Map<String, dynamic> json) =
|
|
_$SpotubeUserObjectImpl.fromJson;
|
|
|
|
@override
|
|
String get id;
|
|
@override
|
|
String get name;
|
|
@override
|
|
List<SpotubeImageObject> get images;
|
|
@override
|
|
String get externalUri;
|
|
|
|
/// Create a copy of SpotubeUserObject
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$SpotubeUserObjectImplCopyWith<_$SpotubeUserObjectImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
PluginConfiguration _$PluginConfigurationFromJson(Map<String, dynamic> json) {
|
|
return _PluginConfiguration.fromJson(json);
|
|
}
|
|
|
|
/// @nodoc
|
|
mixin _$PluginConfiguration {
|
|
PluginType get type => throw _privateConstructorUsedError;
|
|
String get name => throw _privateConstructorUsedError;
|
|
String get description => throw _privateConstructorUsedError;
|
|
String get version => throw _privateConstructorUsedError;
|
|
String get author => throw _privateConstructorUsedError;
|
|
String get entryPoint => throw _privateConstructorUsedError;
|
|
List<PluginApis> get apis => throw _privateConstructorUsedError;
|
|
List<PluginAbilities> get abilities => throw _privateConstructorUsedError;
|
|
|
|
/// Serializes this PluginConfiguration to a JSON map.
|
|
Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
|
|
|
|
/// Create a copy of PluginConfiguration
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
$PluginConfigurationCopyWith<PluginConfiguration> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class $PluginConfigurationCopyWith<$Res> {
|
|
factory $PluginConfigurationCopyWith(
|
|
PluginConfiguration value, $Res Function(PluginConfiguration) then) =
|
|
_$PluginConfigurationCopyWithImpl<$Res, PluginConfiguration>;
|
|
@useResult
|
|
$Res call(
|
|
{PluginType type,
|
|
String name,
|
|
String description,
|
|
String version,
|
|
String author,
|
|
String entryPoint,
|
|
List<PluginApis> apis,
|
|
List<PluginAbilities> abilities});
|
|
}
|
|
|
|
/// @nodoc
|
|
class _$PluginConfigurationCopyWithImpl<$Res, $Val extends PluginConfiguration>
|
|
implements $PluginConfigurationCopyWith<$Res> {
|
|
_$PluginConfigurationCopyWithImpl(this._value, this._then);
|
|
|
|
// ignore: unused_field
|
|
final $Val _value;
|
|
// ignore: unused_field
|
|
final $Res Function($Val) _then;
|
|
|
|
/// Create a copy of PluginConfiguration
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? type = null,
|
|
Object? name = null,
|
|
Object? description = null,
|
|
Object? version = null,
|
|
Object? author = null,
|
|
Object? entryPoint = null,
|
|
Object? apis = null,
|
|
Object? abilities = null,
|
|
}) {
|
|
return _then(_value.copyWith(
|
|
type: null == type
|
|
? _value.type
|
|
: type // ignore: cast_nullable_to_non_nullable
|
|
as PluginType,
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
description: null == description
|
|
? _value.description
|
|
: description // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
version: null == version
|
|
? _value.version
|
|
: version // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
author: null == author
|
|
? _value.author
|
|
: author // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
entryPoint: null == entryPoint
|
|
? _value.entryPoint
|
|
: entryPoint // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
apis: null == apis
|
|
? _value.apis
|
|
: apis // ignore: cast_nullable_to_non_nullable
|
|
as List<PluginApis>,
|
|
abilities: null == abilities
|
|
? _value.abilities
|
|
: abilities // ignore: cast_nullable_to_non_nullable
|
|
as List<PluginAbilities>,
|
|
) as $Val);
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
abstract class _$$PluginConfigurationImplCopyWith<$Res>
|
|
implements $PluginConfigurationCopyWith<$Res> {
|
|
factory _$$PluginConfigurationImplCopyWith(_$PluginConfigurationImpl value,
|
|
$Res Function(_$PluginConfigurationImpl) then) =
|
|
__$$PluginConfigurationImplCopyWithImpl<$Res>;
|
|
@override
|
|
@useResult
|
|
$Res call(
|
|
{PluginType type,
|
|
String name,
|
|
String description,
|
|
String version,
|
|
String author,
|
|
String entryPoint,
|
|
List<PluginApis> apis,
|
|
List<PluginAbilities> abilities});
|
|
}
|
|
|
|
/// @nodoc
|
|
class __$$PluginConfigurationImplCopyWithImpl<$Res>
|
|
extends _$PluginConfigurationCopyWithImpl<$Res, _$PluginConfigurationImpl>
|
|
implements _$$PluginConfigurationImplCopyWith<$Res> {
|
|
__$$PluginConfigurationImplCopyWithImpl(_$PluginConfigurationImpl _value,
|
|
$Res Function(_$PluginConfigurationImpl) _then)
|
|
: super(_value, _then);
|
|
|
|
/// Create a copy of PluginConfiguration
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@pragma('vm:prefer-inline')
|
|
@override
|
|
$Res call({
|
|
Object? type = null,
|
|
Object? name = null,
|
|
Object? description = null,
|
|
Object? version = null,
|
|
Object? author = null,
|
|
Object? entryPoint = null,
|
|
Object? apis = null,
|
|
Object? abilities = null,
|
|
}) {
|
|
return _then(_$PluginConfigurationImpl(
|
|
type: null == type
|
|
? _value.type
|
|
: type // ignore: cast_nullable_to_non_nullable
|
|
as PluginType,
|
|
name: null == name
|
|
? _value.name
|
|
: name // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
description: null == description
|
|
? _value.description
|
|
: description // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
version: null == version
|
|
? _value.version
|
|
: version // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
author: null == author
|
|
? _value.author
|
|
: author // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
entryPoint: null == entryPoint
|
|
? _value.entryPoint
|
|
: entryPoint // ignore: cast_nullable_to_non_nullable
|
|
as String,
|
|
apis: null == apis
|
|
? _value._apis
|
|
: apis // ignore: cast_nullable_to_non_nullable
|
|
as List<PluginApis>,
|
|
abilities: null == abilities
|
|
? _value._abilities
|
|
: abilities // ignore: cast_nullable_to_non_nullable
|
|
as List<PluginAbilities>,
|
|
));
|
|
}
|
|
}
|
|
|
|
/// @nodoc
|
|
@JsonSerializable()
|
|
class _$PluginConfigurationImpl extends _PluginConfiguration {
|
|
_$PluginConfigurationImpl(
|
|
{required this.type,
|
|
required this.name,
|
|
required this.description,
|
|
required this.version,
|
|
required this.author,
|
|
required this.entryPoint,
|
|
final List<PluginApis> apis = const [],
|
|
final List<PluginAbilities> abilities = const []})
|
|
: _apis = apis,
|
|
_abilities = abilities,
|
|
super._();
|
|
|
|
factory _$PluginConfigurationImpl.fromJson(Map<String, dynamic> json) =>
|
|
_$$PluginConfigurationImplFromJson(json);
|
|
|
|
@override
|
|
final PluginType type;
|
|
@override
|
|
final String name;
|
|
@override
|
|
final String description;
|
|
@override
|
|
final String version;
|
|
@override
|
|
final String author;
|
|
@override
|
|
final String entryPoint;
|
|
final List<PluginApis> _apis;
|
|
@override
|
|
@JsonKey()
|
|
List<PluginApis> get apis {
|
|
if (_apis is EqualUnmodifiableListView) return _apis;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_apis);
|
|
}
|
|
|
|
final List<PluginAbilities> _abilities;
|
|
@override
|
|
@JsonKey()
|
|
List<PluginAbilities> get abilities {
|
|
if (_abilities is EqualUnmodifiableListView) return _abilities;
|
|
// ignore: implicit_dynamic_type
|
|
return EqualUnmodifiableListView(_abilities);
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return 'PluginConfiguration(type: $type, name: $name, description: $description, version: $version, author: $author, entryPoint: $entryPoint, apis: $apis, abilities: $abilities)';
|
|
}
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
return identical(this, other) ||
|
|
(other.runtimeType == runtimeType &&
|
|
other is _$PluginConfigurationImpl &&
|
|
(identical(other.type, type) || other.type == type) &&
|
|
(identical(other.name, name) || other.name == name) &&
|
|
(identical(other.description, description) ||
|
|
other.description == description) &&
|
|
(identical(other.version, version) || other.version == version) &&
|
|
(identical(other.author, author) || other.author == author) &&
|
|
(identical(other.entryPoint, entryPoint) ||
|
|
other.entryPoint == entryPoint) &&
|
|
const DeepCollectionEquality().equals(other._apis, _apis) &&
|
|
const DeepCollectionEquality()
|
|
.equals(other._abilities, _abilities));
|
|
}
|
|
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
int get hashCode => Object.hash(
|
|
runtimeType,
|
|
type,
|
|
name,
|
|
description,
|
|
version,
|
|
author,
|
|
entryPoint,
|
|
const DeepCollectionEquality().hash(_apis),
|
|
const DeepCollectionEquality().hash(_abilities));
|
|
|
|
/// Create a copy of PluginConfiguration
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
@override
|
|
@pragma('vm:prefer-inline')
|
|
_$$PluginConfigurationImplCopyWith<_$PluginConfigurationImpl> get copyWith =>
|
|
__$$PluginConfigurationImplCopyWithImpl<_$PluginConfigurationImpl>(
|
|
this, _$identity);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() {
|
|
return _$$PluginConfigurationImplToJson(
|
|
this,
|
|
);
|
|
}
|
|
}
|
|
|
|
abstract class _PluginConfiguration extends PluginConfiguration {
|
|
factory _PluginConfiguration(
|
|
{required final PluginType type,
|
|
required final String name,
|
|
required final String description,
|
|
required final String version,
|
|
required final String author,
|
|
required final String entryPoint,
|
|
final List<PluginApis> apis,
|
|
final List<PluginAbilities> abilities}) = _$PluginConfigurationImpl;
|
|
_PluginConfiguration._() : super._();
|
|
|
|
factory _PluginConfiguration.fromJson(Map<String, dynamic> json) =
|
|
_$PluginConfigurationImpl.fromJson;
|
|
|
|
@override
|
|
PluginType get type;
|
|
@override
|
|
String get name;
|
|
@override
|
|
String get description;
|
|
@override
|
|
String get version;
|
|
@override
|
|
String get author;
|
|
@override
|
|
String get entryPoint;
|
|
@override
|
|
List<PluginApis> get apis;
|
|
@override
|
|
List<PluginAbilities> get abilities;
|
|
|
|
/// Create a copy of PluginConfiguration
|
|
/// with the given fields replaced by the non-null parameter values.
|
|
@override
|
|
@JsonKey(includeFromJson: false, includeToJson: false)
|
|
_$$PluginConfigurationImplCopyWith<_$PluginConfigurationImpl> get copyWith =>
|
|
throw _privateConstructorUsedError;
|
|
}
|