content: // 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
  
  part of 'auth.vm.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 _$AuthStateTearOff {
    const _$AuthStateTearOff();
  
    _Loading loading() {
      return const _Loading();
    }
  
    _Authenticated authenticated({User? user}) {
      return _Authenticated(
        user: user,
      );
    }
  
    _UnAuthenticated unauthenticated() {
      return const _UnAuthenticated();
    }
  }
  
  /// @nodoc
  const $AuthState = _$AuthStateTearOff();
  
  /// @nodoc
  mixin _$AuthState {
    @optionalTypeArgs
    TResult when<TResult extends Object?>({
      required TResult Function() loading,
      required TResult Function(User? user) authenticated,
      required TResult Function() unauthenticated,
    }) =>
        throw _privateConstructorUsedError;
    @optionalTypeArgs
    TResult maybeWhen<TResult extends Object?>({
      TResult Function()? loading,
      TResult Function(User? user)? authenticated,
      TResult Function()? unauthenticated,
      required TResult orElse(),
    }) =>
        throw _privateConstructorUsedError;
    @optionalTypeArgs
    TResult map<TResult extends Object?>({
      required TResult Function(_Loading value) loading,
      required TResult Function(_Authenticated value) authenticated,
      required TResult Function(_UnAuthenticated value) unauthenticated,
    }) =>
        throw _privateConstructorUsedError;
    @optionalTypeArgs
    TResult maybeMap<TResult extends Object?>({
      TResult Function(_Loading value)? loading,
      TResult Function(_Authenticated value)? authenticated,
      TResult Function(_UnAuthenticated value)? unauthenticated,
      required TResult orElse(),
    }) =>
        throw _privateConstructorUsedError;
  }
  
  /// @nodoc
  abstract class $AuthStateCopyWith<$Res> {
    factory $AuthStateCopyWith(AuthState value, $Res Function(AuthState) then) =
        _$AuthStateCopyWithImpl<$Res>;
  }
  
  /// @nodoc
  class _$AuthStateCopyWithImpl<$Res> implements $AuthStateCopyWith<$Res> {
    _$AuthStateCopyWithImpl(this._value, this._then);
  
    final AuthState _value;
    // ignore: unused_field
    final $Res Function(AuthState) _then;
  }
  
  /// @nodoc
  abstract class _$LoadingCopyWith<$Res> {
    factory _$LoadingCopyWith(_Loading value, $Res Function(_Loading) then) =
        __$LoadingCopyWithImpl<$Res>;
  }
  
  /// @nodoc
  class __$LoadingCopyWithImpl<$Res> extends _$AuthStateCopyWithImpl<$Res>
      implements _$LoadingCopyWith<$Res> {
    __$LoadingCopyWithImpl(_Loading _value, $Res Function(_Loading) _then)
        : super(_value, (v) => _then(v as _Loading));
  
    @override
    _Loading get _value => super._value as _Loading;
  }
  
  /// @nodoc
  
  class _$_Loading implements _Loading {
    const _$_Loading();
  
    @override
    String toString() {
      return 'AuthState.loading()';
    }
  
    @override
    bool operator ==(dynamic other) {
      return identical(this, other) || (other is _Loading);
    }
  
    @override
    int get hashCode => runtimeType.hashCode;
  
    @override
    @optionalTypeArgs
    TResult when<TResult extends Object?>({
      required TResult Function() loading,
      required TResult Function(User? user) authenticated,
      required TResult Function() unauthenticated,
    }) {
      return loading();
    }
  
    @override
    @optionalTypeArgs
    TResult maybeWhen<TResult extends Object?>({
      TResult Function()? loading,
      TResult Function(User? user)? authenticated,
      TResult Function()? unauthenticated,
      required TResult orElse(),
    }) {
      if (loading != null) {
        return loading();
      }
      return orElse();
    }
  
    @override
    @optionalTypeArgs
    TResult map<TResult extends Object?>({
      required TResult Function(_Loading value) loading,
      required TResult Function(_Authenticated value) authenticated,
      required TResult Function(_UnAuthenticated value) unauthenticated,
    }) {
      return loading(this);
    }
  
    @override
    @optionalTypeArgs
    TResult maybeMap<TResult extends Object?>({
      TResult Function(_Loading value)? loading,
      TResult Function(_Authenticated value)? authenticated,
      TResult Function(_UnAuthenticated value)? unauthenticated,
      required TResult orElse(),
    }) {
      if (loading != null) {
        return loading(this);
      }
      return orElse();
    }
  }
  
  abstract class _Loading implements AuthState {
    const factory _Loading() = _$_Loading;
  }
  
  /// @nodoc
  abstract class _$AuthenticatedCopyWith<$Res> {
    factory _$AuthenticatedCopyWith(
            _Authenticated value, $Res Function(_Authenticated) then) =
        __$AuthenticatedCopyWithImpl<$Res>;
    $Res call({User? user});
  
    $UserCopyWith<$Res>? get user;
  }
  
  /// @nodoc
  class __$AuthenticatedCopyWithImpl<$Res> extends _$AuthStateCopyWithImpl<$Res>
      implements _$AuthenticatedCopyWith<$Res> {
    __$AuthenticatedCopyWithImpl(
        _Authenticated _value, $Res Function(_Authenticated) _then)
        : super(_value, (v) => _then(v as _Authenticated));
  
    @override
    _Authenticated get _value => super._value as _Authenticated;
  
    @override
    $Res call({
      Object? user = freezed,
    }) {
      return _then(_Authenticated(
        user: user == freezed
            ? _value.user
            : user // ignore: cast_nullable_to_non_nullable
                as User?,
      ));
    }
  
    @override
    $UserCopyWith<$Res>? get user {
      if (_value.user == null) {
        return null;
      }
  
      return $UserCopyWith<$Res>(_value.user!, (value) {
        return _then(_value.copyWith(user: value));
      });
    }
  }
  
  /// @nodoc
  
  class _$_Authenticated implements _Authenticated {
    const _$_Authenticated({this.user});
  
    @override
    final User? user;
  
    @override
    String toString() {
      return 'AuthState.authenticated(user: $user)';
    }
  
    @override
    bool operator ==(dynamic other) {
      return identical(this, other) ||
          (other is _Authenticated &&
              (identical(other.user, user) ||
                  const DeepCollectionEquality().equals(other.user, user)));
    }
  
    @override
    int get hashCode =>
        runtimeType.hashCode ^ const DeepCollectionEquality().hash(user);
  
    @JsonKey(ignore: true)
    @override
    _$AuthenticatedCopyWith<_Authenticated> get copyWith =>
        __$AuthenticatedCopyWithImpl<_Authenticated>(this, _$identity);
  
    @override
    @optionalTypeArgs
    TResult when<TResult extends Object?>({
      required TResult Function() loading,
      required TResult Function(User? user) authenticated,
      required TResult Function() unauthenticated,
    }) {
      return authenticated(user);
    }
  
    @override
    @optionalTypeArgs
    TResult maybeWhen<TResult extends Object?>({
      TResult Function()? loading,
      TResult Function(User? user)? authenticated,
      TResult Function()? unauthenticated,
      required TResult orElse(),
    }) {
      if (authenticated != null) {
        return authenticated(user);
      }
      return orElse();
    }
  
    @override
    @optionalTypeArgs
    TResult map<TResult extends Object?>({
      required TResult Function(_Loading value) loading,
      required TResult Function(_Authenticated value) authenticated,
      required TResult Function(_UnAuthenticated value) unauthenticated,
    }) {
      return authenticated(this);
    }
  
    @override
    @optionalTypeArgs
    TResult maybeMap<TResult extends Object?>({
      TResult Function(_Loading value)? loading,
      TResult Function(_Authenticated value)? authenticated,
      TResult Function(_UnAuthenticated value)? unauthenticated,
      required TResult orElse(),
    }) {
      if (authenticated != null) {
        return authenticated(this);
      }
      return orElse();
    }
  }
  
  abstract class _Authenticated implements AuthState {
    const factory _Authenticated({User? user}) = _$_Authenticated;
  
    User? get user => throw _privateConstructorUsedError;
    @JsonKey(ignore: true)
    _$AuthenticatedCopyWith<_Authenticated> get copyWith =>
        throw _privateConstructorUsedError;
  }
  
  /// @nodoc
  abstract class _$UnAuthenticatedCopyWith<$Res> {
    factory _$UnAuthenticatedCopyWith(
            _UnAuthenticated value, $Res Function(_UnAuthenticated) then) =
        __$UnAuthenticatedCopyWithImpl<$Res>;
  }
  
  /// @nodoc
  class __$UnAuthenticatedCopyWithImpl<$Res> extends _$AuthStateCopyWithImpl<$Res>
      implements _$UnAuthenticatedCopyWith<$Res> {
    __$UnAuthenticatedCopyWithImpl(
        _UnAuthenticated _value, $Res Function(_UnAuthenticated) _then)
        : super(_value, (v) => _then(v as _UnAuthenticated));
  
    @override
    _UnAuthenticated get _value => super._value as _UnAuthenticated;
  }
  
  /// @nodoc
  
  class _$_UnAuthenticated implements _UnAuthenticated {
    const _$_UnAuthenticated();
  
    @override
    String toString() {
      return 'AuthState.unauthenticated()';
    }
  
    @override
    bool operator ==(dynamic other) {
      return identical(this, other) || (other is _UnAuthenticated);
    }
  
    @override
    int get hashCode => runtimeType.hashCode;
  
    @override
    @optionalTypeArgs
    TResult when<TResult extends Object?>({
      required TResult Function() loading,
      required TResult Function(User? user) authenticated,
      required TResult Function() unauthenticated,
    }) {
      return unauthenticated();
    }
  
    @override
    @optionalTypeArgs
    TResult maybeWhen<TResult extends Object?>({
      TResult Function()? loading,
      TResult Function(User? user)? authenticated,
      TResult Function()? unauthenticated,
      required TResult orElse(),
    }) {
      if (unauthenticated != null) {
        return unauthenticated();
      }
      return orElse();
    }
  
    @override
    @optionalTypeArgs
    TResult map<TResult extends Object?>({
      required TResult Function(_Loading value) loading,
      required TResult Function(_Authenticated value) authenticated,
      required TResult Function(_UnAuthenticated value) unauthenticated,
    }) {
      return unauthenticated(this);
    }
  
    @override
    @optionalTypeArgs
    TResult maybeMap<TResult extends Object?>({
      TResult Function(_Loading value)? loading,
      TResult Function(_Authenticated value)? authenticated,
      TResult Function(_UnAuthenticated value)? unauthenticated,
      required TResult orElse(),
    }) {
      if (unauthenticated != null) {
        return unauthenticated(this);
      }
      return orElse();
    }
  }
  
  abstract class _UnAuthenticated implements AuthState {
    const factory _UnAuthenticated() = _$_UnAuthenticated;
  }
  