// 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 'bluetooth_connect_bloc.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#adding-getters-and-methods-to-our-models',
);

/// @nodoc
mixin _$BluetoothConnectEvent {
  String get macAddress => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(String macAddress) connect,
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(String macAddress)? connect,
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(String macAddress)? connect,
    required TResult orElse(),
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_Connect value) connect,
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_Connect value)? connect,
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_Connect value)? connect,
    required TResult orElse(),
  }) => throw _privateConstructorUsedError;

  /// Create a copy of BluetoothConnectEvent
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  $BluetoothConnectEventCopyWith<BluetoothConnectEvent> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $BluetoothConnectEventCopyWith<$Res> {
  factory $BluetoothConnectEventCopyWith(
    BluetoothConnectEvent value,
    $Res Function(BluetoothConnectEvent) then,
  ) = _$BluetoothConnectEventCopyWithImpl<$Res, BluetoothConnectEvent>;
  @useResult
  $Res call({String macAddress});
}

/// @nodoc
class _$BluetoothConnectEventCopyWithImpl<
  $Res,
  $Val extends BluetoothConnectEvent
>
    implements $BluetoothConnectEventCopyWith<$Res> {
  _$BluetoothConnectEventCopyWithImpl(this._value, this._then);

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

  /// Create a copy of BluetoothConnectEvent
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({Object? macAddress = null}) {
    return _then(
      _value.copyWith(
            macAddress: null == macAddress
                ? _value.macAddress
                : macAddress // ignore: cast_nullable_to_non_nullable
                      as String,
          )
          as $Val,
    );
  }
}

/// @nodoc
abstract class _$$ConnectImplCopyWith<$Res>
    implements $BluetoothConnectEventCopyWith<$Res> {
  factory _$$ConnectImplCopyWith(
    _$ConnectImpl value,
    $Res Function(_$ConnectImpl) then,
  ) = __$$ConnectImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call({String macAddress});
}

/// @nodoc
class __$$ConnectImplCopyWithImpl<$Res>
    extends _$BluetoothConnectEventCopyWithImpl<$Res, _$ConnectImpl>
    implements _$$ConnectImplCopyWith<$Res> {
  __$$ConnectImplCopyWithImpl(
    _$ConnectImpl _value,
    $Res Function(_$ConnectImpl) _then,
  ) : super(_value, _then);

  /// Create a copy of BluetoothConnectEvent
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({Object? macAddress = null}) {
    return _then(
      _$ConnectImpl(
        null == macAddress
            ? _value.macAddress
            : macAddress // ignore: cast_nullable_to_non_nullable
                  as String,
      ),
    );
  }
}

/// @nodoc

class _$ConnectImpl implements _Connect {
  const _$ConnectImpl(this.macAddress);

  @override
  final String macAddress;

  @override
  String toString() {
    return 'BluetoothConnectEvent.connect(macAddress: $macAddress)';
  }

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

  @override
  int get hashCode => Object.hash(runtimeType, macAddress);

  /// Create a copy of BluetoothConnectEvent
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  @pragma('vm:prefer-inline')
  _$$ConnectImplCopyWith<_$ConnectImpl> get copyWith =>
      __$$ConnectImplCopyWithImpl<_$ConnectImpl>(this, _$identity);

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

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

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

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_Connect value) connect,
  }) {
    return connect(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_Connect value)? connect,
  }) {
    return connect?.call(this);
  }

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

abstract class _Connect implements BluetoothConnectEvent {
  const factory _Connect(final String macAddress) = _$ConnectImpl;

  @override
  String get macAddress;

  /// Create a copy of BluetoothConnectEvent
  /// with the given fields replaced by the non-null parameter values.
  @override
  @JsonKey(includeFromJson: false, includeToJson: false)
  _$$ConnectImplCopyWith<_$ConnectImpl> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
mixin _$BluetoothConnectState {
  Option<Either<PrinterFailure, bool>> get failureOrSuccee =>
      throw _privateConstructorUsedError;
  bool get isConnecting => throw _privateConstructorUsedError;

  /// Create a copy of BluetoothConnectState
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  $BluetoothConnectStateCopyWith<BluetoothConnectState> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $BluetoothConnectStateCopyWith<$Res> {
  factory $BluetoothConnectStateCopyWith(
    BluetoothConnectState value,
    $Res Function(BluetoothConnectState) then,
  ) = _$BluetoothConnectStateCopyWithImpl<$Res, BluetoothConnectState>;
  @useResult
  $Res call({
    Option<Either<PrinterFailure, bool>> failureOrSuccee,
    bool isConnecting,
  });
}

/// @nodoc
class _$BluetoothConnectStateCopyWithImpl<
  $Res,
  $Val extends BluetoothConnectState
>
    implements $BluetoothConnectStateCopyWith<$Res> {
  _$BluetoothConnectStateCopyWithImpl(this._value, this._then);

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

  /// Create a copy of BluetoothConnectState
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({Object? failureOrSuccee = null, Object? isConnecting = null}) {
    return _then(
      _value.copyWith(
            failureOrSuccee: null == failureOrSuccee
                ? _value.failureOrSuccee
                : failureOrSuccee // ignore: cast_nullable_to_non_nullable
                      as Option<Either<PrinterFailure, bool>>,
            isConnecting: null == isConnecting
                ? _value.isConnecting
                : isConnecting // ignore: cast_nullable_to_non_nullable
                      as bool,
          )
          as $Val,
    );
  }
}

/// @nodoc
abstract class _$$BluetoothConnectStateImplCopyWith<$Res>
    implements $BluetoothConnectStateCopyWith<$Res> {
  factory _$$BluetoothConnectStateImplCopyWith(
    _$BluetoothConnectStateImpl value,
    $Res Function(_$BluetoothConnectStateImpl) then,
  ) = __$$BluetoothConnectStateImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call({
    Option<Either<PrinterFailure, bool>> failureOrSuccee,
    bool isConnecting,
  });
}

/// @nodoc
class __$$BluetoothConnectStateImplCopyWithImpl<$Res>
    extends
        _$BluetoothConnectStateCopyWithImpl<$Res, _$BluetoothConnectStateImpl>
    implements _$$BluetoothConnectStateImplCopyWith<$Res> {
  __$$BluetoothConnectStateImplCopyWithImpl(
    _$BluetoothConnectStateImpl _value,
    $Res Function(_$BluetoothConnectStateImpl) _then,
  ) : super(_value, _then);

  /// Create a copy of BluetoothConnectState
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({Object? failureOrSuccee = null, Object? isConnecting = null}) {
    return _then(
      _$BluetoothConnectStateImpl(
        failureOrSuccee: null == failureOrSuccee
            ? _value.failureOrSuccee
            : failureOrSuccee // ignore: cast_nullable_to_non_nullable
                  as Option<Either<PrinterFailure, bool>>,
        isConnecting: null == isConnecting
            ? _value.isConnecting
            : isConnecting // ignore: cast_nullable_to_non_nullable
                  as bool,
      ),
    );
  }
}

/// @nodoc

class _$BluetoothConnectStateImpl implements _BluetoothConnectState {
  _$BluetoothConnectStateImpl({
    required this.failureOrSuccee,
    this.isConnecting = false,
  });

  @override
  final Option<Either<PrinterFailure, bool>> failureOrSuccee;
  @override
  @JsonKey()
  final bool isConnecting;

  @override
  String toString() {
    return 'BluetoothConnectState(failureOrSuccee: $failureOrSuccee, isConnecting: $isConnecting)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$BluetoothConnectStateImpl &&
            (identical(other.failureOrSuccee, failureOrSuccee) ||
                other.failureOrSuccee == failureOrSuccee) &&
            (identical(other.isConnecting, isConnecting) ||
                other.isConnecting == isConnecting));
  }

  @override
  int get hashCode => Object.hash(runtimeType, failureOrSuccee, isConnecting);

  /// Create a copy of BluetoothConnectState
  /// with the given fields replaced by the non-null parameter values.
  @JsonKey(includeFromJson: false, includeToJson: false)
  @override
  @pragma('vm:prefer-inline')
  _$$BluetoothConnectStateImplCopyWith<_$BluetoothConnectStateImpl>
  get copyWith =>
      __$$BluetoothConnectStateImplCopyWithImpl<_$BluetoothConnectStateImpl>(
        this,
        _$identity,
      );
}

abstract class _BluetoothConnectState implements BluetoothConnectState {
  factory _BluetoothConnectState({
    required final Option<Either<PrinterFailure, bool>> failureOrSuccee,
    final bool isConnecting,
  }) = _$BluetoothConnectStateImpl;

  @override
  Option<Either<PrinterFailure, bool>> get failureOrSuccee;
  @override
  bool get isConnecting;

  /// Create a copy of BluetoothConnectState
  /// with the given fields replaced by the non-null parameter values.
  @override
  @JsonKey(includeFromJson: false, includeToJson: false)
  _$$BluetoothConnectStateImplCopyWith<_$BluetoothConnectStateImpl>
  get copyWith => throw _privateConstructorUsedError;
}
