mirrored_repositories/OLO-Games/marketplace/lib/core/error
// 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 'login_github_failure.dart';

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

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

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

/// @nodoc
mixin _$LoginGitHubFailure {
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() unknown,
    required TResult Function() networkRequestFailed,
    required TResult Function() userDisabled,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function()? unknown,
    TResult? Function()? networkRequestFailed,
    TResult? Function()? userDisabled,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? unknown,
    TResult Function()? networkRequestFailed,
    TResult Function()? userDisabled,
    required TResult orElse(),
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(LoginGitHubFailureUnknown value) unknown,
    required TResult Function(LoginGitHubFailureNetworkRequestFailed value)
        networkRequestFailed,
    required TResult Function(LoginGitHubFailureUserDisabled value)
        userDisabled,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(LoginGitHubFailureUnknown value)? unknown,
    TResult? Function(LoginGitHubFailureNetworkRequestFailed value)?
        networkRequestFailed,
    TResult? Function(LoginGitHubFailureUserDisabled value)? userDisabled,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(LoginGitHubFailureUnknown value)? unknown,
    TResult Function(LoginGitHubFailureNetworkRequestFailed value)?
        networkRequestFailed,
    TResult Function(LoginGitHubFailureUserDisabled value)? userDisabled,
    required TResult orElse(),
  }) =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $LoginGitHubFailureCopyWith<$Res> {
  factory $LoginGitHubFailureCopyWith(
          LoginGitHubFailure value, $Res Function(LoginGitHubFailure) then) =
      _$LoginGitHubFailureCopyWithImpl<$Res, LoginGitHubFailure>;
}

/// @nodoc
class _$LoginGitHubFailureCopyWithImpl<$Res, $Val extends LoginGitHubFailure>
    implements $LoginGitHubFailureCopyWith<$Res> {
  _$LoginGitHubFailureCopyWithImpl(this._value, this._then);

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

/// @nodoc
abstract class _$$LoginGitHubFailureUnknownCopyWith<$Res> {
  factory _$$LoginGitHubFailureUnknownCopyWith(
          _$LoginGitHubFailureUnknown value,
          $Res Function(_$LoginGitHubFailureUnknown) then) =
      __$$LoginGitHubFailureUnknownCopyWithImpl<$Res>;
}

/// @nodoc
class __$$LoginGitHubFailureUnknownCopyWithImpl<$Res>
    extends _$LoginGitHubFailureCopyWithImpl<$Res, _$LoginGitHubFailureUnknown>
    implements _$$LoginGitHubFailureUnknownCopyWith<$Res> {
  __$$LoginGitHubFailureUnknownCopyWithImpl(_$LoginGitHubFailureUnknown _value,
      $Res Function(_$LoginGitHubFailureUnknown) _then)
      : super(_value, _then);
}

/// @nodoc

class _$LoginGitHubFailureUnknown implements LoginGitHubFailureUnknown {
  const _$LoginGitHubFailureUnknown();

  @override
  String toString() {
    return 'LoginGitHubFailure.unknown()';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$LoginGitHubFailureUnknown);
  }

  @override
  int get hashCode => runtimeType.hashCode;

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() unknown,
    required TResult Function() networkRequestFailed,
    required TResult Function() userDisabled,
  }) {
    return unknown();
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function()? unknown,
    TResult? Function()? networkRequestFailed,
    TResult? Function()? userDisabled,
  }) {
    return unknown?.call();
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? unknown,
    TResult Function()? networkRequestFailed,
    TResult Function()? userDisabled,
    required TResult orElse(),
  }) {
    if (unknown != null) {
      return unknown();
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(LoginGitHubFailureUnknown value) unknown,
    required TResult Function(LoginGitHubFailureNetworkRequestFailed value)
        networkRequestFailed,
    required TResult Function(LoginGitHubFailureUserDisabled value)
        userDisabled,
  }) {
    return unknown(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(LoginGitHubFailureUnknown value)? unknown,
    TResult? Function(LoginGitHubFailureNetworkRequestFailed value)?
        networkRequestFailed,
    TResult? Function(LoginGitHubFailureUserDisabled value)? userDisabled,
  }) {
    return unknown?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(LoginGitHubFailureUnknown value)? unknown,
    TResult Function(LoginGitHubFailureNetworkRequestFailed value)?
        networkRequestFailed,
    TResult Function(LoginGitHubFailureUserDisabled value)? userDisabled,
    required TResult orElse(),
  }) {
    if (unknown != null) {
      return unknown(this);
    }
    return orElse();
  }
}

abstract class LoginGitHubFailureUnknown implements LoginGitHubFailure {
  const factory LoginGitHubFailureUnknown() = _$LoginGitHubFailureUnknown;
}

/// @nodoc
abstract class _$$LoginGitHubFailureNetworkRequestFailedCopyWith<$Res> {
  factory _$$LoginGitHubFailureNetworkRequestFailedCopyWith(
          _$LoginGitHubFailureNetworkRequestFailed value,
          $Res Function(_$LoginGitHubFailureNetworkRequestFailed) then) =
      __$$LoginGitHubFailureNetworkRequestFailedCopyWithImpl<$Res>;
}

/// @nodoc
class __$$LoginGitHubFailureNetworkRequestFailedCopyWithImpl<$Res>
    extends _$LoginGitHubFailureCopyWithImpl<$Res,
        _$LoginGitHubFailureNetworkRequestFailed>
    implements _$$LoginGitHubFailureNetworkRequestFailedCopyWith<$Res> {
  __$$LoginGitHubFailureNetworkRequestFailedCopyWithImpl(
      _$LoginGitHubFailureNetworkRequestFailed _value,
      $Res Function(_$LoginGitHubFailureNetworkRequestFailed) _then)
      : super(_value, _then);
}

/// @nodoc

class _$LoginGitHubFailureNetworkRequestFailed
    implements LoginGitHubFailureNetworkRequestFailed {
  const _$LoginGitHubFailureNetworkRequestFailed();

  @override
  String toString() {
    return 'LoginGitHubFailure.networkRequestFailed()';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$LoginGitHubFailureNetworkRequestFailed);
  }

  @override
  int get hashCode => runtimeType.hashCode;

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() unknown,
    required TResult Function() networkRequestFailed,
    required TResult Function() userDisabled,
  }) {
    return networkRequestFailed();
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function()? unknown,
    TResult? Function()? networkRequestFailed,
    TResult? Function()? userDisabled,
  }) {
    return networkRequestFailed?.call();
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? unknown,
    TResult Function()? networkRequestFailed,
    TResult Function()? userDisabled,
    required TResult orElse(),
  }) {
    if (networkRequestFailed != null) {
      return networkRequestFailed();
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(LoginGitHubFailureUnknown value) unknown,
    required TResult Function(LoginGitHubFailureNetworkRequestFailed value)
        networkRequestFailed,
    required TResult Function(LoginGitHubFailureUserDisabled value)
        userDisabled,
  }) {
    return networkRequestFailed(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(LoginGitHubFailureUnknown value)? unknown,
    TResult? Function(LoginGitHubFailureNetworkRequestFailed value)?
        networkRequestFailed,
    TResult? Function(LoginGitHubFailureUserDisabled value)? userDisabled,
  }) {
    return networkRequestFailed?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(LoginGitHubFailureUnknown value)? unknown,
    TResult Function(LoginGitHubFailureNetworkRequestFailed value)?
        networkRequestFailed,
    TResult Function(LoginGitHubFailureUserDisabled value)? userDisabled,
    required TResult orElse(),
  }) {
    if (networkRequestFailed != null) {
      return networkRequestFailed(this);
    }
    return orElse();
  }
}

abstract class LoginGitHubFailureNetworkRequestFailed
    implements LoginGitHubFailure {
  const factory LoginGitHubFailureNetworkRequestFailed() =
      _$LoginGitHubFailureNetworkRequestFailed;
}

/// @nodoc
abstract class _$$LoginGitHubFailureUserDisabledCopyWith<$Res> {
  factory _$$LoginGitHubFailureUserDisabledCopyWith(
          _$LoginGitHubFailureUserDisabled value,
          $Res Function(_$LoginGitHubFailureUserDisabled) then) =
      __$$LoginGitHubFailureUserDisabledCopyWithImpl<$Res>;
}

/// @nodoc
class __$$LoginGitHubFailureUserDisabledCopyWithImpl<$Res>
    extends _$LoginGitHubFailureCopyWithImpl<$Res,
        _$LoginGitHubFailureUserDisabled>
    implements _$$LoginGitHubFailureUserDisabledCopyWith<$Res> {
  __$$LoginGitHubFailureUserDisabledCopyWithImpl(
      _$LoginGitHubFailureUserDisabled _value,
      $Res Function(_$LoginGitHubFailureUserDisabled) _then)
      : super(_value, _then);
}

/// @nodoc

class _$LoginGitHubFailureUserDisabled
    implements LoginGitHubFailureUserDisabled {
  const _$LoginGitHubFailureUserDisabled();

  @override
  String toString() {
    return 'LoginGitHubFailure.userDisabled()';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$LoginGitHubFailureUserDisabled);
  }

  @override
  int get hashCode => runtimeType.hashCode;

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() unknown,
    required TResult Function() networkRequestFailed,
    required TResult Function() userDisabled,
  }) {
    return userDisabled();
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function()? unknown,
    TResult? Function()? networkRequestFailed,
    TResult? Function()? userDisabled,
  }) {
    return userDisabled?.call();
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? unknown,
    TResult Function()? networkRequestFailed,
    TResult Function()? userDisabled,
    required TResult orElse(),
  }) {
    if (userDisabled != null) {
      return userDisabled();
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(LoginGitHubFailureUnknown value) unknown,
    required TResult Function(LoginGitHubFailureNetworkRequestFailed value)
        networkRequestFailed,
    required TResult Function(LoginGitHubFailureUserDisabled value)
        userDisabled,
  }) {
    return userDisabled(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(LoginGitHubFailureUnknown value)? unknown,
    TResult? Function(LoginGitHubFailureNetworkRequestFailed value)?
        networkRequestFailed,
    TResult? Function(LoginGitHubFailureUserDisabled value)? userDisabled,
  }) {
    return userDisabled?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(LoginGitHubFailureUnknown value)? unknown,
    TResult Function(LoginGitHubFailureNetworkRequestFailed value)?
        networkRequestFailed,
    TResult Function(LoginGitHubFailureUserDisabled value)? userDisabled,
    required TResult orElse(),
  }) {
    if (userDisabled != null) {
      return userDisabled(this);
    }
    return orElse();
  }
}

abstract class LoginGitHubFailureUserDisabled implements LoginGitHubFailure {
  const factory LoginGitHubFailureUserDisabled() =
      _$LoginGitHubFailureUserDisabled;
}
