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 'change_profile_password_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 _$ChangeProfilePasswordFailure {
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() unknown,
    required TResult Function() weakPassword,
    required TResult Function() requiresRecentLogin,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function()? unknown,
    TResult? Function()? weakPassword,
    TResult? Function()? requiresRecentLogin,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? unknown,
    TResult Function()? weakPassword,
    TResult Function()? requiresRecentLogin,
    required TResult orElse(),
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(ChangeProfilePasswordFailureUnknown value)
        unknown,
    required TResult Function(ChangeProfilePasswordFailureWeakPassword value)
        weakPassword,
    required TResult Function(
            ChangeProfilePasswordFailureRequiresRecentLogin value)
        requiresRecentLogin,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(ChangeProfilePasswordFailureUnknown value)? unknown,
    TResult? Function(ChangeProfilePasswordFailureWeakPassword value)?
        weakPassword,
    TResult? Function(ChangeProfilePasswordFailureRequiresRecentLogin value)?
        requiresRecentLogin,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(ChangeProfilePasswordFailureUnknown value)? unknown,
    TResult Function(ChangeProfilePasswordFailureWeakPassword value)?
        weakPassword,
    TResult Function(ChangeProfilePasswordFailureRequiresRecentLogin value)?
        requiresRecentLogin,
    required TResult orElse(),
  }) =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $ChangeProfilePasswordFailureCopyWith<$Res> {
  factory $ChangeProfilePasswordFailureCopyWith(
          ChangeProfilePasswordFailure value,
          $Res Function(ChangeProfilePasswordFailure) then) =
      _$ChangeProfilePasswordFailureCopyWithImpl<$Res,
          ChangeProfilePasswordFailure>;
}

/// @nodoc
class _$ChangeProfilePasswordFailureCopyWithImpl<$Res,
        $Val extends ChangeProfilePasswordFailure>
    implements $ChangeProfilePasswordFailureCopyWith<$Res> {
  _$ChangeProfilePasswordFailureCopyWithImpl(this._value, this._then);

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

/// @nodoc
abstract class _$$ChangeProfilePasswordFailureUnknownCopyWith<$Res> {
  factory _$$ChangeProfilePasswordFailureUnknownCopyWith(
          _$ChangeProfilePasswordFailureUnknown value,
          $Res Function(_$ChangeProfilePasswordFailureUnknown) then) =
      __$$ChangeProfilePasswordFailureUnknownCopyWithImpl<$Res>;
}

/// @nodoc
class __$$ChangeProfilePasswordFailureUnknownCopyWithImpl<$Res>
    extends _$ChangeProfilePasswordFailureCopyWithImpl<$Res,
        _$ChangeProfilePasswordFailureUnknown>
    implements _$$ChangeProfilePasswordFailureUnknownCopyWith<$Res> {
  __$$ChangeProfilePasswordFailureUnknownCopyWithImpl(
      _$ChangeProfilePasswordFailureUnknown _value,
      $Res Function(_$ChangeProfilePasswordFailureUnknown) _then)
      : super(_value, _then);
}

/// @nodoc

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

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

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

  @override
  int get hashCode => runtimeType.hashCode;

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

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

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

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(ChangeProfilePasswordFailureUnknown value)
        unknown,
    required TResult Function(ChangeProfilePasswordFailureWeakPassword value)
        weakPassword,
    required TResult Function(
            ChangeProfilePasswordFailureRequiresRecentLogin value)
        requiresRecentLogin,
  }) {
    return unknown(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(ChangeProfilePasswordFailureUnknown value)? unknown,
    TResult? Function(ChangeProfilePasswordFailureWeakPassword value)?
        weakPassword,
    TResult? Function(ChangeProfilePasswordFailureRequiresRecentLogin value)?
        requiresRecentLogin,
  }) {
    return unknown?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(ChangeProfilePasswordFailureUnknown value)? unknown,
    TResult Function(ChangeProfilePasswordFailureWeakPassword value)?
        weakPassword,
    TResult Function(ChangeProfilePasswordFailureRequiresRecentLogin value)?
        requiresRecentLogin,
    required TResult orElse(),
  }) {
    if (unknown != null) {
      return unknown(this);
    }
    return orElse();
  }
}

abstract class ChangeProfilePasswordFailureUnknown
    implements ChangeProfilePasswordFailure {
  const factory ChangeProfilePasswordFailureUnknown() =
      _$ChangeProfilePasswordFailureUnknown;
}

/// @nodoc
abstract class _$$ChangeProfilePasswordFailureWeakPasswordCopyWith<$Res> {
  factory _$$ChangeProfilePasswordFailureWeakPasswordCopyWith(
          _$ChangeProfilePasswordFailureWeakPassword value,
          $Res Function(_$ChangeProfilePasswordFailureWeakPassword) then) =
      __$$ChangeProfilePasswordFailureWeakPasswordCopyWithImpl<$Res>;
}

/// @nodoc
class __$$ChangeProfilePasswordFailureWeakPasswordCopyWithImpl<$Res>
    extends _$ChangeProfilePasswordFailureCopyWithImpl<$Res,
        _$ChangeProfilePasswordFailureWeakPassword>
    implements _$$ChangeProfilePasswordFailureWeakPasswordCopyWith<$Res> {
  __$$ChangeProfilePasswordFailureWeakPasswordCopyWithImpl(
      _$ChangeProfilePasswordFailureWeakPassword _value,
      $Res Function(_$ChangeProfilePasswordFailureWeakPassword) _then)
      : super(_value, _then);
}

/// @nodoc

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

  @override
  String toString() {
    return 'ChangeProfilePasswordFailure.weakPassword()';
  }

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

  @override
  int get hashCode => runtimeType.hashCode;

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

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

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

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(ChangeProfilePasswordFailureUnknown value)
        unknown,
    required TResult Function(ChangeProfilePasswordFailureWeakPassword value)
        weakPassword,
    required TResult Function(
            ChangeProfilePasswordFailureRequiresRecentLogin value)
        requiresRecentLogin,
  }) {
    return weakPassword(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(ChangeProfilePasswordFailureUnknown value)? unknown,
    TResult? Function(ChangeProfilePasswordFailureWeakPassword value)?
        weakPassword,
    TResult? Function(ChangeProfilePasswordFailureRequiresRecentLogin value)?
        requiresRecentLogin,
  }) {
    return weakPassword?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(ChangeProfilePasswordFailureUnknown value)? unknown,
    TResult Function(ChangeProfilePasswordFailureWeakPassword value)?
        weakPassword,
    TResult Function(ChangeProfilePasswordFailureRequiresRecentLogin value)?
        requiresRecentLogin,
    required TResult orElse(),
  }) {
    if (weakPassword != null) {
      return weakPassword(this);
    }
    return orElse();
  }
}

abstract class ChangeProfilePasswordFailureWeakPassword
    implements ChangeProfilePasswordFailure {
  const factory ChangeProfilePasswordFailureWeakPassword() =
      _$ChangeProfilePasswordFailureWeakPassword;
}

/// @nodoc
abstract class _$$ChangeProfilePasswordFailureRequiresRecentLoginCopyWith<
    $Res> {
  factory _$$ChangeProfilePasswordFailureRequiresRecentLoginCopyWith(
          _$ChangeProfilePasswordFailureRequiresRecentLogin value,
          $Res Function(_$ChangeProfilePasswordFailureRequiresRecentLogin)
              then) =
      __$$ChangeProfilePasswordFailureRequiresRecentLoginCopyWithImpl<$Res>;
}

/// @nodoc
class __$$ChangeProfilePasswordFailureRequiresRecentLoginCopyWithImpl<$Res>
    extends _$ChangeProfilePasswordFailureCopyWithImpl<$Res,
        _$ChangeProfilePasswordFailureRequiresRecentLogin>
    implements
        _$$ChangeProfilePasswordFailureRequiresRecentLoginCopyWith<$Res> {
  __$$ChangeProfilePasswordFailureRequiresRecentLoginCopyWithImpl(
      _$ChangeProfilePasswordFailureRequiresRecentLogin _value,
      $Res Function(_$ChangeProfilePasswordFailureRequiresRecentLogin) _then)
      : super(_value, _then);
}

/// @nodoc

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

  @override
  String toString() {
    return 'ChangeProfilePasswordFailure.requiresRecentLogin()';
  }

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

  @override
  int get hashCode => runtimeType.hashCode;

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

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

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

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(ChangeProfilePasswordFailureUnknown value)
        unknown,
    required TResult Function(ChangeProfilePasswordFailureWeakPassword value)
        weakPassword,
    required TResult Function(
            ChangeProfilePasswordFailureRequiresRecentLogin value)
        requiresRecentLogin,
  }) {
    return requiresRecentLogin(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(ChangeProfilePasswordFailureUnknown value)? unknown,
    TResult? Function(ChangeProfilePasswordFailureWeakPassword value)?
        weakPassword,
    TResult? Function(ChangeProfilePasswordFailureRequiresRecentLogin value)?
        requiresRecentLogin,
  }) {
    return requiresRecentLogin?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(ChangeProfilePasswordFailureUnknown value)? unknown,
    TResult Function(ChangeProfilePasswordFailureWeakPassword value)?
        weakPassword,
    TResult Function(ChangeProfilePasswordFailureRequiresRecentLogin value)?
        requiresRecentLogin,
    required TResult orElse(),
  }) {
    if (requiresRecentLogin != null) {
      return requiresRecentLogin(this);
    }
    return orElse();
  }
}

abstract class ChangeProfilePasswordFailureRequiresRecentLogin
    implements ChangeProfilePasswordFailure {
  const factory ChangeProfilePasswordFailureRequiresRecentLogin() =
      _$ChangeProfilePasswordFailureRequiresRecentLogin;
}
