// 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 'history_order_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 _$HistoryOrderEvent {
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() started,
    required TResult Function() getHistoryOrder,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function()? started,
    TResult? Function()? getHistoryOrder,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? started,
    TResult Function()? getHistoryOrder,
    required TResult orElse(),
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_Started value) started,
    required TResult Function(_HistoryOrder value) getHistoryOrder,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_Started value)? started,
    TResult? Function(_HistoryOrder value)? getHistoryOrder,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_Started value)? started,
    TResult Function(_HistoryOrder value)? getHistoryOrder,
    required TResult orElse(),
  }) =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $HistoryOrderEventCopyWith<$Res> {
  factory $HistoryOrderEventCopyWith(
          HistoryOrderEvent value, $Res Function(HistoryOrderEvent) then) =
      _$HistoryOrderEventCopyWithImpl<$Res, HistoryOrderEvent>;
}

/// @nodoc
class _$HistoryOrderEventCopyWithImpl<$Res, $Val extends HistoryOrderEvent>
    implements $HistoryOrderEventCopyWith<$Res> {
  _$HistoryOrderEventCopyWithImpl(this._value, this._then);

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

/// @nodoc
abstract class _$$StartedImplCopyWith<$Res> {
  factory _$$StartedImplCopyWith(
          _$StartedImpl value, $Res Function(_$StartedImpl) then) =
      __$$StartedImplCopyWithImpl<$Res>;
}

/// @nodoc
class __$$StartedImplCopyWithImpl<$Res>
    extends _$HistoryOrderEventCopyWithImpl<$Res, _$StartedImpl>
    implements _$$StartedImplCopyWith<$Res> {
  __$$StartedImplCopyWithImpl(
      _$StartedImpl _value, $Res Function(_$StartedImpl) _then)
      : super(_value, _then);
}

/// @nodoc

class _$StartedImpl implements _Started {
  const _$StartedImpl();

  @override
  String toString() {
    return 'HistoryOrderEvent.started()';
  }

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

  @override
  int get hashCode => runtimeType.hashCode;

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() started,
    required TResult Function() getHistoryOrder,
  }) {
    return started();
  }

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

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

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_Started value) started,
    required TResult Function(_HistoryOrder value) getHistoryOrder,
  }) {
    return started(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_Started value)? started,
    TResult? Function(_HistoryOrder value)? getHistoryOrder,
  }) {
    return started?.call(this);
  }

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

abstract class _Started implements HistoryOrderEvent {
  const factory _Started() = _$StartedImpl;
}

/// @nodoc
abstract class _$$HistoryOrderImplCopyWith<$Res> {
  factory _$$HistoryOrderImplCopyWith(
          _$HistoryOrderImpl value, $Res Function(_$HistoryOrderImpl) then) =
      __$$HistoryOrderImplCopyWithImpl<$Res>;
}

/// @nodoc
class __$$HistoryOrderImplCopyWithImpl<$Res>
    extends _$HistoryOrderEventCopyWithImpl<$Res, _$HistoryOrderImpl>
    implements _$$HistoryOrderImplCopyWith<$Res> {
  __$$HistoryOrderImplCopyWithImpl(
      _$HistoryOrderImpl _value, $Res Function(_$HistoryOrderImpl) _then)
      : super(_value, _then);
}

/// @nodoc

class _$HistoryOrderImpl implements _HistoryOrder {
  const _$HistoryOrderImpl();

  @override
  String toString() {
    return 'HistoryOrderEvent.getHistoryOrder()';
  }

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

  @override
  int get hashCode => runtimeType.hashCode;

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() started,
    required TResult Function() getHistoryOrder,
  }) {
    return getHistoryOrder();
  }

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

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

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_Started value) started,
    required TResult Function(_HistoryOrder value) getHistoryOrder,
  }) {
    return getHistoryOrder(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_Started value)? started,
    TResult? Function(_HistoryOrder value)? getHistoryOrder,
  }) {
    return getHistoryOrder?.call(this);
  }

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

abstract class _HistoryOrder implements HistoryOrderEvent {
  const factory _HistoryOrder() = _$HistoryOrderImpl;
}

/// @nodoc
mixin _$HistoryOrderState {
  HistoryOrderStateStatus get status => throw _privateConstructorUsedError;
  HistoryOrderResponseModel? get orders => throw _privateConstructorUsedError;
  String get errorMessage => throw _privateConstructorUsedError;

  @JsonKey(ignore: true)
  $HistoryOrderStateCopyWith<HistoryOrderState> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $HistoryOrderStateCopyWith<$Res> {
  factory $HistoryOrderStateCopyWith(
          HistoryOrderState value, $Res Function(HistoryOrderState) then) =
      _$HistoryOrderStateCopyWithImpl<$Res, HistoryOrderState>;
  @useResult
  $Res call(
      {HistoryOrderStateStatus status,
      HistoryOrderResponseModel? orders,
      String errorMessage});
}

/// @nodoc
class _$HistoryOrderStateCopyWithImpl<$Res, $Val extends HistoryOrderState>
    implements $HistoryOrderStateCopyWith<$Res> {
  _$HistoryOrderStateCopyWithImpl(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? status = null,
    Object? orders = freezed,
    Object? errorMessage = null,
  }) {
    return _then(_value.copyWith(
      status: null == status
          ? _value.status
          : status // ignore: cast_nullable_to_non_nullable
              as HistoryOrderStateStatus,
      orders: freezed == orders
          ? _value.orders
          : orders // ignore: cast_nullable_to_non_nullable
              as HistoryOrderResponseModel?,
      errorMessage: null == errorMessage
          ? _value.errorMessage
          : errorMessage // ignore: cast_nullable_to_non_nullable
              as String,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$HistoryOrderStateImplCopyWith<$Res>
    implements $HistoryOrderStateCopyWith<$Res> {
  factory _$$HistoryOrderStateImplCopyWith(_$HistoryOrderStateImpl value,
          $Res Function(_$HistoryOrderStateImpl) then) =
      __$$HistoryOrderStateImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call(
      {HistoryOrderStateStatus status,
      HistoryOrderResponseModel? orders,
      String errorMessage});
}

/// @nodoc
class __$$HistoryOrderStateImplCopyWithImpl<$Res>
    extends _$HistoryOrderStateCopyWithImpl<$Res, _$HistoryOrderStateImpl>
    implements _$$HistoryOrderStateImplCopyWith<$Res> {
  __$$HistoryOrderStateImplCopyWithImpl(_$HistoryOrderStateImpl _value,
      $Res Function(_$HistoryOrderStateImpl) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? status = null,
    Object? orders = freezed,
    Object? errorMessage = null,
  }) {
    return _then(_$HistoryOrderStateImpl(
      status: null == status
          ? _value.status
          : status // ignore: cast_nullable_to_non_nullable
              as HistoryOrderStateStatus,
      orders: freezed == orders
          ? _value.orders
          : orders // ignore: cast_nullable_to_non_nullable
              as HistoryOrderResponseModel?,
      errorMessage: null == errorMessage
          ? _value.errorMessage
          : errorMessage // ignore: cast_nullable_to_non_nullable
              as String,
    ));
  }
}

/// @nodoc

class _$HistoryOrderStateImpl implements _HistoryOrderState {
  const _$HistoryOrderStateImpl(
      {this.status = HistoryOrderStateStatus.initial,
      this.orders = null,
      this.errorMessage = ''});

  @override
  @JsonKey()
  final HistoryOrderStateStatus status;
  @override
  @JsonKey()
  final HistoryOrderResponseModel? orders;
  @override
  @JsonKey()
  final String errorMessage;

  @override
  String toString() {
    return 'HistoryOrderState(status: $status, orders: $orders, errorMessage: $errorMessage)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$HistoryOrderStateImpl &&
            (identical(other.status, status) || other.status == status) &&
            (identical(other.orders, orders) || other.orders == orders) &&
            (identical(other.errorMessage, errorMessage) ||
                other.errorMessage == errorMessage));
  }

  @override
  int get hashCode => Object.hash(runtimeType, status, orders, errorMessage);

  @JsonKey(ignore: true)
  @override
  @pragma('vm:prefer-inline')
  _$$HistoryOrderStateImplCopyWith<_$HistoryOrderStateImpl> get copyWith =>
      __$$HistoryOrderStateImplCopyWithImpl<_$HistoryOrderStateImpl>(
          this, _$identity);
}

abstract class _HistoryOrderState implements HistoryOrderState {
  const factory _HistoryOrderState(
      {final HistoryOrderStateStatus status,
      final HistoryOrderResponseModel? orders,
      final String errorMessage}) = _$HistoryOrderStateImpl;

  @override
  HistoryOrderStateStatus get status;
  @override
  HistoryOrderResponseModel? get orders;
  @override
  String get errorMessage;
  @override
  @JsonKey(ignore: true)
  _$$HistoryOrderStateImplCopyWith<_$HistoryOrderStateImpl> get copyWith =>
      throw _privateConstructorUsedError;
}
