// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target

part of 'list_album_model.dart';

// **************************************************************************
// FreezedGenerator
// **************************************************************************

T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
    'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');

ListAlbumModel _$ListAlbumModelFromJson(Map<String, dynamic> json) {
  return _ListAlbumModel.fromJson(json);
}

/// @nodoc
mixin _$ListAlbumModel {
  List<AlbumModel> get albums => throw _privateConstructorUsedError;

  Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  @JsonKey(ignore: true)
  $ListAlbumModelCopyWith<ListAlbumModel> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $ListAlbumModelCopyWith<$Res> {
  factory $ListAlbumModelCopyWith(
          ListAlbumModel value, $Res Function(ListAlbumModel) then) =
      _$ListAlbumModelCopyWithImpl<$Res, ListAlbumModel>;
  @useResult
  $Res call({List<AlbumModel> albums});
}

/// @nodoc
class _$ListAlbumModelCopyWithImpl<$Res, $Val extends ListAlbumModel>
    implements $ListAlbumModelCopyWith<$Res> {
  _$ListAlbumModelCopyWithImpl(this._value, this._then);

  // ignore: unused_field
  final $Val _value;
  // ignore: unused_field
  final $Res Function($Val) _then;

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? albums = null,
  }) {
    return _then(_value.copyWith(
      albums: null == albums
          ? _value.albums
          : albums // ignore: cast_nullable_to_non_nullable
              as List<AlbumModel>,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$_ListAlbumModelCopyWith<$Res>
    implements $ListAlbumModelCopyWith<$Res> {
  factory _$$_ListAlbumModelCopyWith(
          _$_ListAlbumModel value, $Res Function(_$_ListAlbumModel) then) =
      __$$_ListAlbumModelCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call({List<AlbumModel> albums});
}

/// @nodoc
class __$$_ListAlbumModelCopyWithImpl<$Res>
    extends _$ListAlbumModelCopyWithImpl<$Res, _$_ListAlbumModel>
    implements _$$_ListAlbumModelCopyWith<$Res> {
  __$$_ListAlbumModelCopyWithImpl(
      _$_ListAlbumModel _value, $Res Function(_$_ListAlbumModel) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? albums = null,
  }) {
    return _then(_$_ListAlbumModel(
      albums: null == albums
          ? _value._albums
          : albums // ignore: cast_nullable_to_non_nullable
              as List<AlbumModel>,
    ));
  }
}

/// @nodoc
@JsonSerializable()
class _$_ListAlbumModel implements _ListAlbumModel {
  const _$_ListAlbumModel({required final List<AlbumModel> albums})
      : _albums = albums;

  factory _$_ListAlbumModel.fromJson(Map<String, dynamic> json) =>
      _$$_ListAlbumModelFromJson(json);

  final List<AlbumModel> _albums;
  @override
  List<AlbumModel> get albums {
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_albums);
  }

  @override
  String toString() {
    return 'ListAlbumModel(albums: $albums)';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$_ListAlbumModel &&
            const DeepCollectionEquality().equals(other._albums, _albums));
  }

  @JsonKey(ignore: true)
  @override
  int get hashCode =>
      Object.hash(runtimeType, const DeepCollectionEquality().hash(_albums));

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$_ListAlbumModelCopyWith<_$_ListAlbumModel> get copyWith =>
      __$$_ListAlbumModelCopyWithImpl<_$_ListAlbumModel>(this, _$identity);

  @override
  Map<String, dynamic> toJson() {
    return _$$_ListAlbumModelToJson(
      this,
    );
  }
}

abstract class _ListAlbumModel implements ListAlbumModel {
  const factory _ListAlbumModel({required final List<AlbumModel> albums}) =
      _$_ListAlbumModel;

  factory _ListAlbumModel.fromJson(Map<String, dynamic> json) =
      _$_ListAlbumModel.fromJson;

  @override
  List<AlbumModel> get albums;
  @override
  @JsonKey(ignore: true)
  _$$_ListAlbumModelCopyWith<_$_ListAlbumModel> get copyWith =>
      throw _privateConstructorUsedError;
}
