// 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 'loading_error.dart';

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

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

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

/// @nodoc
mixin _$LoadingError {
  String get message => throw _privateConstructorUsedError;
  bool get allowRetry => throw _privateConstructorUsedError;

  @JsonKey(ignore: true)
  $LoadingErrorCopyWith<LoadingError> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $LoadingErrorCopyWith<$Res> {
  factory $LoadingErrorCopyWith(
          LoadingError value, $Res Function(LoadingError) then) =
      _$LoadingErrorCopyWithImpl<$Res, LoadingError>;
  @useResult
  $Res call({String message, bool allowRetry});
}

/// @nodoc
class _$LoadingErrorCopyWithImpl<$Res, $Val extends LoadingError>
    implements $LoadingErrorCopyWith<$Res> {
  _$LoadingErrorCopyWithImpl(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? message = null,
    Object? allowRetry = null,
  }) {
    return _then(_value.copyWith(
      message: null == message
          ? _value.message
          : message // ignore: cast_nullable_to_non_nullable
              as String,
      allowRetry: null == allowRetry
          ? _value.allowRetry
          : allowRetry // ignore: cast_nullable_to_non_nullable
              as bool,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$LoadingErrorImplCopyWith<$Res>
    implements $LoadingErrorCopyWith<$Res> {
  factory _$$LoadingErrorImplCopyWith(
          _$LoadingErrorImpl value, $Res Function(_$LoadingErrorImpl) then) =
      __$$LoadingErrorImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call({String message, bool allowRetry});
}

/// @nodoc
class __$$LoadingErrorImplCopyWithImpl<$Res>
    extends _$LoadingErrorCopyWithImpl<$Res, _$LoadingErrorImpl>
    implements _$$LoadingErrorImplCopyWith<$Res> {
  __$$LoadingErrorImplCopyWithImpl(
      _$LoadingErrorImpl _value, $Res Function(_$LoadingErrorImpl) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? message = null,
    Object? allowRetry = null,
  }) {
    return _then(_$LoadingErrorImpl(
      message: null == message
          ? _value.message
          : message // ignore: cast_nullable_to_non_nullable
              as String,
      allowRetry: null == allowRetry
          ? _value.allowRetry
          : allowRetry // ignore: cast_nullable_to_non_nullable
              as bool,
    ));
  }
}

/// @nodoc

class _$LoadingErrorImpl implements _LoadingError {
  const _$LoadingErrorImpl({required this.message, this.allowRetry = false});

  @override
  final String message;
  @override
  @JsonKey()
  final bool allowRetry;

  @override
  String toString() {
    return 'LoadingError(message: $message, allowRetry: $allowRetry)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$LoadingErrorImpl &&
            (identical(other.message, message) || other.message == message) &&
            (identical(other.allowRetry, allowRetry) ||
                other.allowRetry == allowRetry));
  }

  @override
  int get hashCode => Object.hash(runtimeType, message, allowRetry);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$LoadingErrorImplCopyWith<_$LoadingErrorImpl> get copyWith =>
      __$$LoadingErrorImplCopyWithImpl<_$LoadingErrorImpl>(this, _$identity);
}

abstract class _LoadingError implements LoadingError {
  const factory _LoadingError(
      {required final String message,
      final bool allowRetry}) = _$LoadingErrorImpl;

  @override
  String get message;
  @override
  bool get allowRetry;
  @override
  @JsonKey(ignore: true)
  _$$LoadingErrorImplCopyWith<_$LoadingErrorImpl> get copyWith =>
      throw _privateConstructorUsedError;
}