// 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 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 json) { return _SpotubeFullAlbumObject.fromJson(json); } /// @nodoc mixin _$SpotubeFullAlbumObject { String get id => throw _privateConstructorUsedError; String get name => throw _privateConstructorUsedError; List get artists => throw _privateConstructorUsedError; List 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? get genres => throw _privateConstructorUsedError; /// Serializes this SpotubeFullAlbumObject to a JSON map. Map 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 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 artists, List images, String releaseDate, String externalUri, int totalTracks, SpotubeAlbumType albumType, String? recordLabel, List? 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, images: null == images ? _value.images : images // ignore: cast_nullable_to_non_nullable as List, 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?, ) 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 artists, List images, String releaseDate, String externalUri, int totalTracks, SpotubeAlbumType albumType, String? recordLabel, List? 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, images: null == images ? _value._images : images // ignore: cast_nullable_to_non_nullable as List, 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?, )); } } /// @nodoc @JsonSerializable() class _$SpotubeFullAlbumObjectImpl implements _SpotubeFullAlbumObject { _$SpotubeFullAlbumObjectImpl( {required this.id, required this.name, required final List artists, final List images = const [], required this.releaseDate, required this.externalUri, required this.totalTracks, required this.albumType, this.recordLabel, final List? genres}) : _artists = artists, _images = images, _genres = genres; factory _$SpotubeFullAlbumObjectImpl.fromJson(Map json) => _$$SpotubeFullAlbumObjectImplFromJson(json); @override final String id; @override final String name; final List _artists; @override List get artists { if (_artists is EqualUnmodifiableListView) return _artists; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_artists); } final List _images; @override @JsonKey() List 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? _genres; @override List? 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 toJson() { return _$$SpotubeFullAlbumObjectImplToJson( this, ); } } abstract class _SpotubeFullAlbumObject implements SpotubeFullAlbumObject { factory _SpotubeFullAlbumObject( {required final String id, required final String name, required final List artists, final List images, required final String releaseDate, required final String externalUri, required final int totalTracks, required final SpotubeAlbumType albumType, final String? recordLabel, final List? genres}) = _$SpotubeFullAlbumObjectImpl; factory _SpotubeFullAlbumObject.fromJson(Map json) = _$SpotubeFullAlbumObjectImpl.fromJson; @override String get id; @override String get name; @override List get artists; @override List get images; @override String get releaseDate; @override String get externalUri; @override int get totalTracks; @override SpotubeAlbumType get albumType; @override String? get recordLabel; @override List? 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 json) { return _SpotubeSimpleAlbumObject.fromJson(json); } /// @nodoc mixin _$SpotubeSimpleAlbumObject { String get id => throw _privateConstructorUsedError; String get name => throw _privateConstructorUsedError; String get externalUri => throw _privateConstructorUsedError; List get artists => throw _privateConstructorUsedError; List get images => throw _privateConstructorUsedError; SpotubeAlbumType get albumType => throw _privateConstructorUsedError; String? get releaseDate => throw _privateConstructorUsedError; /// Serializes this SpotubeSimpleAlbumObject to a JSON map. Map 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 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 artists, List 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, images: null == images ? _value.images : images // ignore: cast_nullable_to_non_nullable as List, 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 artists, List 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, images: null == images ? _value._images : images // ignore: cast_nullable_to_non_nullable as List, 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 artists, final List images = const [], required this.albumType, this.releaseDate}) : _artists = artists, _images = images; factory _$SpotubeSimpleAlbumObjectImpl.fromJson(Map json) => _$$SpotubeSimpleAlbumObjectImplFromJson(json); @override final String id; @override final String name; @override final String externalUri; final List _artists; @override List get artists { if (_artists is EqualUnmodifiableListView) return _artists; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_artists); } final List _images; @override @JsonKey() List 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 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 artists, final List images, required final SpotubeAlbumType albumType, final String? releaseDate}) = _$SpotubeSimpleAlbumObjectImpl; factory _SpotubeSimpleAlbumObject.fromJson(Map json) = _$SpotubeSimpleAlbumObjectImpl.fromJson; @override String get id; @override String get name; @override String get externalUri; @override List get artists; @override List 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 json) { return _SpotubeFullArtistObject.fromJson(json); } /// @nodoc mixin _$SpotubeFullArtistObject { String get id => throw _privateConstructorUsedError; String get name => throw _privateConstructorUsedError; String get externalUri => throw _privateConstructorUsedError; List get images => throw _privateConstructorUsedError; List? get genres => throw _privateConstructorUsedError; int? get followers => throw _privateConstructorUsedError; /// Serializes this SpotubeFullArtistObject to a JSON map. Map 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 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 images, List? 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, genres: freezed == genres ? _value.genres : genres // ignore: cast_nullable_to_non_nullable as List?, 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 images, List? 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, genres: freezed == genres ? _value._genres : genres // ignore: cast_nullable_to_non_nullable as List?, 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 images = const [], final List? genres, this.followers}) : _images = images, _genres = genres; factory _$SpotubeFullArtistObjectImpl.fromJson(Map json) => _$$SpotubeFullArtistObjectImplFromJson(json); @override final String id; @override final String name; @override final String externalUri; final List _images; @override @JsonKey() List get images { if (_images is EqualUnmodifiableListView) return _images; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_images); } final List? _genres; @override List? 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 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 images, final List? genres, final int? followers}) = _$SpotubeFullArtistObjectImpl; factory _SpotubeFullArtistObject.fromJson(Map json) = _$SpotubeFullArtistObjectImpl.fromJson; @override String get id; @override String get name; @override String get externalUri; @override List get images; @override List? 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 json) { return _SpotubeSimpleArtistObject.fromJson(json); } /// @nodoc mixin _$SpotubeSimpleArtistObject { String get id => throw _privateConstructorUsedError; String get name => throw _privateConstructorUsedError; String get externalUri => throw _privateConstructorUsedError; List? get images => throw _privateConstructorUsedError; /// Serializes this SpotubeSimpleArtistObject to a JSON map. Map 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 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, List? images}); } /// @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, Object? images = 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: freezed == images ? _value.images : images // ignore: cast_nullable_to_non_nullable as List?, ) 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, List? images}); } /// @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, Object? images = freezed, }) { 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, images: freezed == images ? _value._images : images // ignore: cast_nullable_to_non_nullable as List?, )); } } /// @nodoc @JsonSerializable() class _$SpotubeSimpleArtistObjectImpl implements _SpotubeSimpleArtistObject { _$SpotubeSimpleArtistObjectImpl( {required this.id, required this.name, required this.externalUri, final List? images}) : _images = images; factory _$SpotubeSimpleArtistObjectImpl.fromJson(Map json) => _$$SpotubeSimpleArtistObjectImplFromJson(json); @override final String id; @override final String name; @override final String externalUri; final List? _images; @override List? get images { final value = _images; if (value == null) return null; if (_images is EqualUnmodifiableListView) return _images; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(value); } @override String toString() { return 'SpotubeSimpleArtistObject(id: $id, name: $name, externalUri: $externalUri, images: $images)'; } @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) && const DeepCollectionEquality().equals(other._images, _images)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, id, name, externalUri, const DeepCollectionEquality().hash(_images)); /// 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 toJson() { return _$$SpotubeSimpleArtistObjectImplToJson( this, ); } } abstract class _SpotubeSimpleArtistObject implements SpotubeSimpleArtistObject { factory _SpotubeSimpleArtistObject( {required final String id, required final String name, required final String externalUri, final List? images}) = _$SpotubeSimpleArtistObjectImpl; factory _SpotubeSimpleArtistObject.fromJson(Map json) = _$SpotubeSimpleArtistObjectImpl.fromJson; @override String get id; @override String get name; @override String get externalUri; @override List? get images; /// 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 _$SpotubeBrowseSectionObjectFromJson( Map json, T Function(Object?) fromJsonT) { return _SpotubeBrowseSectionObject.fromJson(json, fromJsonT); } /// @nodoc mixin _$SpotubeBrowseSectionObject { String get id => throw _privateConstructorUsedError; String get title => throw _privateConstructorUsedError; String get externalUri => throw _privateConstructorUsedError; bool get browseMore => throw _privateConstructorUsedError; List get items => throw _privateConstructorUsedError; /// Serializes this SpotubeBrowseSectionObject to a JSON map. Map 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> get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $SpotubeBrowseSectionObjectCopyWith { factory $SpotubeBrowseSectionObjectCopyWith( SpotubeBrowseSectionObject value, $Res Function(SpotubeBrowseSectionObject) then) = _$SpotubeBrowseSectionObjectCopyWithImpl>; @useResult $Res call( {String id, String title, String externalUri, bool browseMore, List items}); } /// @nodoc class _$SpotubeBrowseSectionObjectCopyWithImpl> implements $SpotubeBrowseSectionObjectCopyWith { _$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, ) as $Val); } } /// @nodoc abstract class _$$SpotubeBrowseSectionObjectImplCopyWith implements $SpotubeBrowseSectionObjectCopyWith { factory _$$SpotubeBrowseSectionObjectImplCopyWith( _$SpotubeBrowseSectionObjectImpl value, $Res Function(_$SpotubeBrowseSectionObjectImpl) then) = __$$SpotubeBrowseSectionObjectImplCopyWithImpl; @override @useResult $Res call( {String id, String title, String externalUri, bool browseMore, List items}); } /// @nodoc class __$$SpotubeBrowseSectionObjectImplCopyWithImpl extends _$SpotubeBrowseSectionObjectCopyWithImpl> implements _$$SpotubeBrowseSectionObjectImplCopyWith { __$$SpotubeBrowseSectionObjectImplCopyWithImpl( _$SpotubeBrowseSectionObjectImpl _value, $Res Function(_$SpotubeBrowseSectionObjectImpl) _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( 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, )); } } /// @nodoc @JsonSerializable(genericArgumentFactories: true) class _$SpotubeBrowseSectionObjectImpl implements _SpotubeBrowseSectionObject { _$SpotubeBrowseSectionObjectImpl( {required this.id, required this.title, required this.externalUri, required this.browseMore, required final List items}) : _items = items; factory _$SpotubeBrowseSectionObjectImpl.fromJson( Map 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 _items; @override List 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 && (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> get copyWith => __$$SpotubeBrowseSectionObjectImplCopyWithImpl>(this, _$identity); @override Map toJson(Object? Function(T) toJsonT) { return _$$SpotubeBrowseSectionObjectImplToJson(this, toJsonT); } } abstract class _SpotubeBrowseSectionObject implements SpotubeBrowseSectionObject { factory _SpotubeBrowseSectionObject( {required final String id, required final String title, required final String externalUri, required final bool browseMore, required final List items}) = _$SpotubeBrowseSectionObjectImpl; factory _SpotubeBrowseSectionObject.fromJson( Map json, T Function(Object?) fromJsonT) = _$SpotubeBrowseSectionObjectImpl.fromJson; @override String get id; @override String get title; @override String get externalUri; @override bool get browseMore; @override List 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> get copyWith => throw _privateConstructorUsedError; } SpotubeImageObject _$SpotubeImageObjectFromJson(Map 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 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 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 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 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 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 _$SpotubePaginationResponseObjectFromJson( Map json, T Function(Object?) fromJsonT) { return _SpotubePaginationResponseObject.fromJson(json, fromJsonT); } /// @nodoc mixin _$SpotubePaginationResponseObject { int get limit => throw _privateConstructorUsedError; int? get nextOffset => throw _privateConstructorUsedError; int get total => throw _privateConstructorUsedError; bool get hasMore => throw _privateConstructorUsedError; List get items => throw _privateConstructorUsedError; /// Serializes this SpotubePaginationResponseObject to a JSON map. Map 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> get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $SpotubePaginationResponseObjectCopyWith { factory $SpotubePaginationResponseObjectCopyWith( SpotubePaginationResponseObject value, $Res Function(SpotubePaginationResponseObject) then) = _$SpotubePaginationResponseObjectCopyWithImpl>; @useResult $Res call( {int limit, int? nextOffset, int total, bool hasMore, List items}); } /// @nodoc class _$SpotubePaginationResponseObjectCopyWithImpl> implements $SpotubePaginationResponseObjectCopyWith { _$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, ) as $Val); } } /// @nodoc abstract class _$$SpotubePaginationResponseObjectImplCopyWith implements $SpotubePaginationResponseObjectCopyWith { factory _$$SpotubePaginationResponseObjectImplCopyWith( _$SpotubePaginationResponseObjectImpl value, $Res Function(_$SpotubePaginationResponseObjectImpl) then) = __$$SpotubePaginationResponseObjectImplCopyWithImpl; @override @useResult $Res call( {int limit, int? nextOffset, int total, bool hasMore, List items}); } /// @nodoc class __$$SpotubePaginationResponseObjectImplCopyWithImpl extends _$SpotubePaginationResponseObjectCopyWithImpl> implements _$$SpotubePaginationResponseObjectImplCopyWith { __$$SpotubePaginationResponseObjectImplCopyWithImpl( _$SpotubePaginationResponseObjectImpl _value, $Res Function(_$SpotubePaginationResponseObjectImpl) _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( 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, )); } } /// @nodoc @JsonSerializable(genericArgumentFactories: true) class _$SpotubePaginationResponseObjectImpl implements _SpotubePaginationResponseObject { _$SpotubePaginationResponseObjectImpl( {required this.limit, required this.nextOffset, required this.total, required this.hasMore, required final List items}) : _items = items; factory _$SpotubePaginationResponseObjectImpl.fromJson( Map 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 _items; @override List 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 && (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> get copyWith => __$$SpotubePaginationResponseObjectImplCopyWithImpl>(this, _$identity); @override Map toJson(Object? Function(T) toJsonT) { return _$$SpotubePaginationResponseObjectImplToJson(this, toJsonT); } } abstract class _SpotubePaginationResponseObject implements SpotubePaginationResponseObject { factory _SpotubePaginationResponseObject( {required final int limit, required final int? nextOffset, required final int total, required final bool hasMore, required final List items}) = _$SpotubePaginationResponseObjectImpl; factory _SpotubePaginationResponseObject.fromJson( Map json, T Function(Object?) fromJsonT) = _$SpotubePaginationResponseObjectImpl.fromJson; @override int get limit; @override int? get nextOffset; @override int get total; @override bool get hasMore; @override List 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> get copyWith => throw _privateConstructorUsedError; } SpotubeFullPlaylistObject _$SpotubeFullPlaylistObjectFromJson( Map 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 get images => throw _privateConstructorUsedError; List get collaborators => throw _privateConstructorUsedError; bool get collaborative => throw _privateConstructorUsedError; bool get public => throw _privateConstructorUsedError; /// Serializes this SpotubeFullPlaylistObject to a JSON map. Map 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 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 images, List 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, collaborators: null == collaborators ? _value.collaborators : collaborators // ignore: cast_nullable_to_non_nullable as List, 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 images, List 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, collaborators: null == collaborators ? _value._collaborators : collaborators // ignore: cast_nullable_to_non_nullable as List, 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 images = const [], final List collaborators = const [], this.collaborative = false, this.public = false}) : _images = images, _collaborators = collaborators; factory _$SpotubeFullPlaylistObjectImpl.fromJson(Map 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 _images; @override @JsonKey() List get images { if (_images is EqualUnmodifiableListView) return _images; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_images); } final List _collaborators; @override @JsonKey() List 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 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 images, final List collaborators, final bool collaborative, final bool public}) = _$SpotubeFullPlaylistObjectImpl; factory _SpotubeFullPlaylistObject.fromJson(Map 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 get images; @override List 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 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 get images => throw _privateConstructorUsedError; /// Serializes this SpotubeSimplePlaylistObject to a JSON map. Map 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 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 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, ) 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 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, )); } } /// @nodoc @JsonSerializable() class _$SpotubeSimplePlaylistObjectImpl implements _SpotubeSimplePlaylistObject { _$SpotubeSimplePlaylistObjectImpl( {required this.id, required this.name, required this.description, required this.externalUri, required this.owner, final List images = const []}) : _images = images; factory _$SpotubeSimplePlaylistObjectImpl.fromJson( Map 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 _images; @override @JsonKey() List 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 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 images}) = _$SpotubeSimplePlaylistObjectImpl; factory _SpotubeSimplePlaylistObject.fromJson(Map 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 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 json) { return _SpotubeSearchResponseObject.fromJson(json); } /// @nodoc mixin _$SpotubeSearchResponseObject { List get albums => throw _privateConstructorUsedError; List get artists => throw _privateConstructorUsedError; List get playlists => throw _privateConstructorUsedError; List get tracks => throw _privateConstructorUsedError; /// Serializes this SpotubeSearchResponseObject to a JSON map. Map 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 get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $SpotubeSearchResponseObjectCopyWith<$Res> { factory $SpotubeSearchResponseObjectCopyWith( SpotubeSearchResponseObject value, $Res Function(SpotubeSearchResponseObject) then) = _$SpotubeSearchResponseObjectCopyWithImpl<$Res, SpotubeSearchResponseObject>; @useResult $Res call( {List albums, List artists, List playlists, List 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, artists: null == artists ? _value.artists : artists // ignore: cast_nullable_to_non_nullable as List, playlists: null == playlists ? _value.playlists : playlists // ignore: cast_nullable_to_non_nullable as List, tracks: null == tracks ? _value.tracks : tracks // ignore: cast_nullable_to_non_nullable as List, ) 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 albums, List artists, List playlists, List 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, artists: null == artists ? _value._artists : artists // ignore: cast_nullable_to_non_nullable as List, playlists: null == playlists ? _value._playlists : playlists // ignore: cast_nullable_to_non_nullable as List, tracks: null == tracks ? _value._tracks : tracks // ignore: cast_nullable_to_non_nullable as List, )); } } /// @nodoc @JsonSerializable() class _$SpotubeSearchResponseObjectImpl implements _SpotubeSearchResponseObject { _$SpotubeSearchResponseObjectImpl( {required final List albums, required final List artists, required final List playlists, required final List tracks}) : _albums = albums, _artists = artists, _playlists = playlists, _tracks = tracks; factory _$SpotubeSearchResponseObjectImpl.fromJson( Map json) => _$$SpotubeSearchResponseObjectImplFromJson(json); final List _albums; @override List get albums { if (_albums is EqualUnmodifiableListView) return _albums; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_albums); } final List _artists; @override List get artists { if (_artists is EqualUnmodifiableListView) return _artists; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_artists); } final List _playlists; @override List get playlists { if (_playlists is EqualUnmodifiableListView) return _playlists; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_playlists); } final List _tracks; @override List 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 toJson() { return _$$SpotubeSearchResponseObjectImplToJson( this, ); } } abstract class _SpotubeSearchResponseObject implements SpotubeSearchResponseObject { factory _SpotubeSearchResponseObject( {required final List albums, required final List artists, required final List playlists, required final List tracks}) = _$SpotubeSearchResponseObjectImpl; factory _SpotubeSearchResponseObject.fromJson(Map json) = _$SpotubeSearchResponseObjectImpl.fromJson; @override List get albums; @override List get artists; @override List get playlists; @override List 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 json) { return _SpotubeFullTrackObject.fromJson(json); } /// @nodoc mixin _$SpotubeFullTrackObject { String get id => throw _privateConstructorUsedError; String get name => throw _privateConstructorUsedError; String get externalUri => throw _privateConstructorUsedError; List 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 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 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 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, 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 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, 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 artists = const [], required this.album, required this.durationMs, required this.isrc, required this.explicit}) : _artists = artists; factory _$SpotubeFullTrackObjectImpl.fromJson(Map json) => _$$SpotubeFullTrackObjectImplFromJson(json); @override final String id; @override final String name; @override final String externalUri; final List _artists; @override @JsonKey() List 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 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 artists, required final SpotubeSimpleAlbumObject album, required final int durationMs, required final String isrc, required final bool explicit}) = _$SpotubeFullTrackObjectImpl; factory _SpotubeFullTrackObject.fromJson(Map json) = _$SpotubeFullTrackObjectImpl.fromJson; @override String get id; @override String get name; @override String get externalUri; @override List 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 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 get artists => throw _privateConstructorUsedError; SpotubeSimpleAlbumObject? get album => throw _privateConstructorUsedError; /// Serializes this SpotubeSimpleTrackObject to a JSON map. Map 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 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 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, 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 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, 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 artists = const [], this.album}) : _artists = artists; factory _$SpotubeSimpleTrackObjectImpl.fromJson(Map 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 _artists; @override @JsonKey() List 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 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 artists, final SpotubeSimpleAlbumObject? album}) = _$SpotubeSimpleTrackObjectImpl; factory _SpotubeSimpleTrackObject.fromJson(Map 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 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 json) { return _SpotubeUserObject.fromJson(json); } /// @nodoc mixin _$SpotubeUserObject { String get id => throw _privateConstructorUsedError; String get name => throw _privateConstructorUsedError; List get images => throw _privateConstructorUsedError; String get externalUri => throw _privateConstructorUsedError; /// Serializes this SpotubeUserObject to a JSON map. Map 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 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 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, 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 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, 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 images = const [], required this.externalUri}) : _images = images; factory _$SpotubeUserObjectImpl.fromJson(Map json) => _$$SpotubeUserObjectImplFromJson(json); @override final String id; @override final String name; final List _images; @override @JsonKey() List 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 toJson() { return _$$SpotubeUserObjectImplToJson( this, ); } } abstract class _SpotubeUserObject implements SpotubeUserObject { factory _SpotubeUserObject( {required final String id, required final String name, final List images, required final String externalUri}) = _$SpotubeUserObjectImpl; factory _SpotubeUserObject.fromJson(Map json) = _$SpotubeUserObjectImpl.fromJson; @override String get id; @override String get name; @override List 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 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 get apis => throw _privateConstructorUsedError; List get abilities => throw _privateConstructorUsedError; /// Serializes this PluginConfiguration to a JSON map. Map 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 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 apis, List 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, abilities: null == abilities ? _value.abilities : abilities // ignore: cast_nullable_to_non_nullable as List, ) 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 apis, List 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, abilities: null == abilities ? _value._abilities : abilities // ignore: cast_nullable_to_non_nullable as List, )); } } /// @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 apis = const [], final List abilities = const []}) : _apis = apis, _abilities = abilities, super._(); factory _$PluginConfigurationImpl.fromJson(Map 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 _apis; @override @JsonKey() List get apis { if (_apis is EqualUnmodifiableListView) return _apis; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_apis); } final List _abilities; @override @JsonKey() List 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 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 apis, final List abilities}) = _$PluginConfigurationImpl; _PluginConfiguration._() : super._(); factory _PluginConfiguration.fromJson(Map 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 get apis; @override List 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; }