// 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 'active_logins.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');

ActiveLogins _$ActiveLoginsFromJson(Map<String, dynamic> json) {
  return _ActiveLogins.fromJson(json);
}

/// @nodoc
mixin _$ActiveLogins {
// The list of current logged in accounts
  IList<UserLogin> get userLogins =>
      throw _privateConstructorUsedError; // The current selected account indexed by master record key
  Typed<FixedEncodedString43>? get activeUserLogin =>
      throw _privateConstructorUsedError;

  Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
  @JsonKey(ignore: true)
  $ActiveLoginsCopyWith<ActiveLogins> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $ActiveLoginsCopyWith<$Res> {
  factory $ActiveLoginsCopyWith(
          ActiveLogins value, $Res Function(ActiveLogins) then) =
      _$ActiveLoginsCopyWithImpl<$Res, ActiveLogins>;
  @useResult
  $Res call(
      {IList<UserLogin> userLogins,
      Typed<FixedEncodedString43>? activeUserLogin});
}

/// @nodoc
class _$ActiveLoginsCopyWithImpl<$Res, $Val extends ActiveLogins>
    implements $ActiveLoginsCopyWith<$Res> {
  _$ActiveLoginsCopyWithImpl(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? userLogins = null,
    Object? activeUserLogin = freezed,
  }) {
    return _then(_value.copyWith(
      userLogins: null == userLogins
          ? _value.userLogins
          : userLogins // ignore: cast_nullable_to_non_nullable
              as IList<UserLogin>,
      activeUserLogin: freezed == activeUserLogin
          ? _value.activeUserLogin
          : activeUserLogin // ignore: cast_nullable_to_non_nullable
              as Typed<FixedEncodedString43>?,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$ActiveLoginsImplCopyWith<$Res>
    implements $ActiveLoginsCopyWith<$Res> {
  factory _$$ActiveLoginsImplCopyWith(
          _$ActiveLoginsImpl value, $Res Function(_$ActiveLoginsImpl) then) =
      __$$ActiveLoginsImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call(
      {IList<UserLogin> userLogins,
      Typed<FixedEncodedString43>? activeUserLogin});
}

/// @nodoc
class __$$ActiveLoginsImplCopyWithImpl<$Res>
    extends _$ActiveLoginsCopyWithImpl<$Res, _$ActiveLoginsImpl>
    implements _$$ActiveLoginsImplCopyWith<$Res> {
  __$$ActiveLoginsImplCopyWithImpl(
      _$ActiveLoginsImpl _value, $Res Function(_$ActiveLoginsImpl) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? userLogins = null,
    Object? activeUserLogin = freezed,
  }) {
    return _then(_$ActiveLoginsImpl(
      userLogins: null == userLogins
          ? _value.userLogins
          : userLogins // ignore: cast_nullable_to_non_nullable
              as IList<UserLogin>,
      activeUserLogin: freezed == activeUserLogin
          ? _value.activeUserLogin
          : activeUserLogin // ignore: cast_nullable_to_non_nullable
              as Typed<FixedEncodedString43>?,
    ));
  }
}

/// @nodoc
@JsonSerializable()
class _$ActiveLoginsImpl implements _ActiveLogins {
  const _$ActiveLoginsImpl({required this.userLogins, this.activeUserLogin});

  factory _$ActiveLoginsImpl.fromJson(Map<String, dynamic> json) =>
      _$$ActiveLoginsImplFromJson(json);

// The list of current logged in accounts
  @override
  final IList<UserLogin> userLogins;
// The current selected account indexed by master record key
  @override
  final Typed<FixedEncodedString43>? activeUserLogin;

  @override
  String toString() {
    return 'ActiveLogins(userLogins: $userLogins, activeUserLogin: $activeUserLogin)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$ActiveLoginsImpl &&
            const DeepCollectionEquality()
                .equals(other.userLogins, userLogins) &&
            (identical(other.activeUserLogin, activeUserLogin) ||
                other.activeUserLogin == activeUserLogin));
  }

  @JsonKey(ignore: true)
  @override
  int get hashCode => Object.hash(runtimeType,
      const DeepCollectionEquality().hash(userLogins), activeUserLogin);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$ActiveLoginsImplCopyWith<_$ActiveLoginsImpl> get copyWith =>
      __$$ActiveLoginsImplCopyWithImpl<_$ActiveLoginsImpl>(this, _$identity);

  @override
  Map<String, dynamic> toJson() {
    return _$$ActiveLoginsImplToJson(
      this,
    );
  }
}

abstract class _ActiveLogins implements ActiveLogins {
  const factory _ActiveLogins(
      {required final IList<UserLogin> userLogins,
      final Typed<FixedEncodedString43>? activeUserLogin}) = _$ActiveLoginsImpl;

  factory _ActiveLogins.fromJson(Map<String, dynamic> json) =
      _$ActiveLoginsImpl.fromJson;

  @override // The list of current logged in accounts
  IList<UserLogin> get userLogins;
  @override // The current selected account indexed by master record key
  Typed<FixedEncodedString43>? get activeUserLogin;
  @override
  @JsonKey(ignore: true)
  _$$ActiveLoginsImplCopyWith<_$ActiveLoginsImpl> get copyWith =>
      throw _privateConstructorUsedError;
}
