mirrored_repositories/body--watch/lib/data/domain/models
// coverage:ignore-file
// GENERATED CODE - DO NOT MODIFY BY HAND
// 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 'app_preferences_failures.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 informations: https://github.com/rrousselGit/freezed#custom-getters-and-methods');

/// @nodoc
class _$AppPreferencesFailureTearOff {
  const _$AppPreferencesFailureTearOff();

  NotPreferencesFound notPreferencesFound() {
    return const NotPreferencesFound();
  }

  TypicalFailure typicalFailure({required String message}) {
    return TypicalFailure(
      message: message,
    );
  }
}

/// @nodoc
const $AppPreferencesFailure = _$AppPreferencesFailureTearOff();

/// @nodoc
mixin _$AppPreferencesFailure {
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() notPreferencesFound,
    required TResult Function(String message) typicalFailure,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult Function()? notPreferencesFound,
    TResult Function(String message)? typicalFailure,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? notPreferencesFound,
    TResult Function(String message)? typicalFailure,
    required TResult orElse(),
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(NotPreferencesFound value) notPreferencesFound,
    required TResult Function(TypicalFailure value) typicalFailure,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult Function(NotPreferencesFound value)? notPreferencesFound,
    TResult Function(TypicalFailure value)? typicalFailure,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(NotPreferencesFound value)? notPreferencesFound,
    TResult Function(TypicalFailure value)? typicalFailure,
    required TResult orElse(),
  }) =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $AppPreferencesFailureCopyWith<$Res> {
  factory $AppPreferencesFailureCopyWith(AppPreferencesFailure value,
          $Res Function(AppPreferencesFailure) then) =
      _$AppPreferencesFailureCopyWithImpl<$Res>;
}

/// @nodoc
class _$AppPreferencesFailureCopyWithImpl<$Res>
    implements $AppPreferencesFailureCopyWith<$Res> {
  _$AppPreferencesFailureCopyWithImpl(this._value, this._then);

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

/// @nodoc
abstract class $NotPreferencesFoundCopyWith<$Res> {
  factory $NotPreferencesFoundCopyWith(
          NotPreferencesFound value, $Res Function(NotPreferencesFound) then) =
      _$NotPreferencesFoundCopyWithImpl<$Res>;
}

/// @nodoc
class _$NotPreferencesFoundCopyWithImpl<$Res>
    extends _$AppPreferencesFailureCopyWithImpl<$Res>
    implements $NotPreferencesFoundCopyWith<$Res> {
  _$NotPreferencesFoundCopyWithImpl(
      NotPreferencesFound _value, $Res Function(NotPreferencesFound) _then)
      : super(_value, (v) => _then(v as NotPreferencesFound));

  @override
  NotPreferencesFound get _value => super._value as NotPreferencesFound;
}

/// @nodoc

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

  @override
  String toString() {
    return 'AppPreferencesFailure.notPreferencesFound()';
  }

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

  @override
  int get hashCode => runtimeType.hashCode;

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() notPreferencesFound,
    required TResult Function(String message) typicalFailure,
  }) {
    return notPreferencesFound();
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult Function()? notPreferencesFound,
    TResult Function(String message)? typicalFailure,
  }) {
    return notPreferencesFound?.call();
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? notPreferencesFound,
    TResult Function(String message)? typicalFailure,
    required TResult orElse(),
  }) {
    if (notPreferencesFound != null) {
      return notPreferencesFound();
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(NotPreferencesFound value) notPreferencesFound,
    required TResult Function(TypicalFailure value) typicalFailure,
  }) {
    return notPreferencesFound(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult Function(NotPreferencesFound value)? notPreferencesFound,
    TResult Function(TypicalFailure value)? typicalFailure,
  }) {
    return notPreferencesFound?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(NotPreferencesFound value)? notPreferencesFound,
    TResult Function(TypicalFailure value)? typicalFailure,
    required TResult orElse(),
  }) {
    if (notPreferencesFound != null) {
      return notPreferencesFound(this);
    }
    return orElse();
  }
}

abstract class NotPreferencesFound implements AppPreferencesFailure {
  const factory NotPreferencesFound() = _$NotPreferencesFound;
}

/// @nodoc
abstract class $TypicalFailureCopyWith<$Res> {
  factory $TypicalFailureCopyWith(
          TypicalFailure value, $Res Function(TypicalFailure) then) =
      _$TypicalFailureCopyWithImpl<$Res>;
  $Res call({String message});
}

/// @nodoc
class _$TypicalFailureCopyWithImpl<$Res>
    extends _$AppPreferencesFailureCopyWithImpl<$Res>
    implements $TypicalFailureCopyWith<$Res> {
  _$TypicalFailureCopyWithImpl(
      TypicalFailure _value, $Res Function(TypicalFailure) _then)
      : super(_value, (v) => _then(v as TypicalFailure));

  @override
  TypicalFailure get _value => super._value as TypicalFailure;

  @override
  $Res call({
    Object? message = freezed,
  }) {
    return _then(TypicalFailure(
      message: message == freezed
          ? _value.message
          : message // ignore: cast_nullable_to_non_nullable
              as String,
    ));
  }
}

/// @nodoc

class _$TypicalFailure implements TypicalFailure {
  const _$TypicalFailure({required this.message});

  @override
  final String message;

  @override
  String toString() {
    return 'AppPreferencesFailure.typicalFailure(message: $message)';
  }

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

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

  @JsonKey(ignore: true)
  @override
  $TypicalFailureCopyWith<TypicalFailure> get copyWith =>
      _$TypicalFailureCopyWithImpl<TypicalFailure>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() notPreferencesFound,
    required TResult Function(String message) typicalFailure,
  }) {
    return typicalFailure(message);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult Function()? notPreferencesFound,
    TResult Function(String message)? typicalFailure,
  }) {
    return typicalFailure?.call(message);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? notPreferencesFound,
    TResult Function(String message)? typicalFailure,
    required TResult orElse(),
  }) {
    if (typicalFailure != null) {
      return typicalFailure(message);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(NotPreferencesFound value) notPreferencesFound,
    required TResult Function(TypicalFailure value) typicalFailure,
  }) {
    return typicalFailure(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult Function(NotPreferencesFound value)? notPreferencesFound,
    TResult Function(TypicalFailure value)? typicalFailure,
  }) {
    return typicalFailure?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(NotPreferencesFound value)? notPreferencesFound,
    TResult Function(TypicalFailure value)? typicalFailure,
    required TResult orElse(),
  }) {
    if (typicalFailure != null) {
      return typicalFailure(this);
    }
    return orElse();
  }
}

abstract class TypicalFailure implements AppPreferencesFailure {
  const factory TypicalFailure({required String message}) = _$TypicalFailure;

  String get message;
  @JsonKey(ignore: true)
  $TypicalFailureCopyWith<TypicalFailure> get copyWith =>
      throw _privateConstructorUsedError;
}
