// 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 'purchasing_analytic_loader_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 _$PurchasingAnalyticLoaderEvent {
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(DateTime dateFrom, DateTime dateTo)
    rangeDateChanged,
    required TResult Function(String? outletId) outletChanged,
    required TResult Function() fetched,
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(DateTime dateFrom, DateTime dateTo)? rangeDateChanged,
    TResult? Function(String? outletId)? outletChanged,
    TResult? Function()? fetched,
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(DateTime dateFrom, DateTime dateTo)? rangeDateChanged,
    TResult Function(String? outletId)? outletChanged,
    TResult Function()? fetched,
    required TResult orElse(),
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_RangeDateChanged value) rangeDateChanged,
    required TResult Function(_OutletChanged value) outletChanged,
    required TResult Function(_Fetched value) fetched,
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_RangeDateChanged value)? rangeDateChanged,
    TResult? Function(_OutletChanged value)? outletChanged,
    TResult? Function(_Fetched value)? fetched,
  }) => throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_RangeDateChanged value)? rangeDateChanged,
    TResult Function(_OutletChanged value)? outletChanged,
    TResult Function(_Fetched value)? fetched,
    required TResult orElse(),
  }) => throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $PurchasingAnalyticLoaderEventCopyWith<$Res> {
  factory $PurchasingAnalyticLoaderEventCopyWith(
    PurchasingAnalyticLoaderEvent value,
    $Res Function(PurchasingAnalyticLoaderEvent) then,
  ) =
      _$PurchasingAnalyticLoaderEventCopyWithImpl<
        $Res,
        PurchasingAnalyticLoaderEvent
      >;
}

/// @nodoc
class _$PurchasingAnalyticLoaderEventCopyWithImpl<
  $Res,
  $Val extends PurchasingAnalyticLoaderEvent
>
    implements $PurchasingAnalyticLoaderEventCopyWith<$Res> {
  _$PurchasingAnalyticLoaderEventCopyWithImpl(this._value, this._then);

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

  /// Create a copy of PurchasingAnalyticLoaderEvent
  /// with the given fields replaced by the non-null parameter values.
}

/// @nodoc
abstract class _$$RangeDateChangedImplCopyWith<$Res> {
  factory _$$RangeDateChangedImplCopyWith(
    _$RangeDateChangedImpl value,
    $Res Function(_$RangeDateChangedImpl) then,
  ) = __$$RangeDateChangedImplCopyWithImpl<$Res>;
  @useResult
  $Res call({DateTime dateFrom, DateTime dateTo});
}

/// @nodoc
class __$$RangeDateChangedImplCopyWithImpl<$Res>
    extends
        _$PurchasingAnalyticLoaderEventCopyWithImpl<
          $Res,
          _$RangeDateChangedImpl
        >
    implements _$$RangeDateChangedImplCopyWith<$Res> {
  __$$RangeDateChangedImplCopyWithImpl(
    _$RangeDateChangedImpl _value,
    $Res Function(_$RangeDateChangedImpl) _then,
  ) : super(_value, _then);

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

/// @nodoc

class _$RangeDateChangedImpl implements _RangeDateChanged {
  const _$RangeDateChangedImpl(this.dateFrom, this.dateTo);

  @override
  final DateTime dateFrom;
  @override
  final DateTime dateTo;

  @override
  String toString() {
    return 'PurchasingAnalyticLoaderEvent.rangeDateChanged(dateFrom: $dateFrom, dateTo: $dateTo)';
  }

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

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

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

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(DateTime dateFrom, DateTime dateTo)
    rangeDateChanged,
    required TResult Function(String? outletId) outletChanged,
    required TResult Function() fetched,
  }) {
    return rangeDateChanged(dateFrom, dateTo);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(DateTime dateFrom, DateTime dateTo)? rangeDateChanged,
    TResult? Function(String? outletId)? outletChanged,
    TResult? Function()? fetched,
  }) {
    return rangeDateChanged?.call(dateFrom, dateTo);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(DateTime dateFrom, DateTime dateTo)? rangeDateChanged,
    TResult Function(String? outletId)? outletChanged,
    TResult Function()? fetched,
    required TResult orElse(),
  }) {
    if (rangeDateChanged != null) {
      return rangeDateChanged(dateFrom, dateTo);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_RangeDateChanged value) rangeDateChanged,
    required TResult Function(_OutletChanged value) outletChanged,
    required TResult Function(_Fetched value) fetched,
  }) {
    return rangeDateChanged(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_RangeDateChanged value)? rangeDateChanged,
    TResult? Function(_OutletChanged value)? outletChanged,
    TResult? Function(_Fetched value)? fetched,
  }) {
    return rangeDateChanged?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_RangeDateChanged value)? rangeDateChanged,
    TResult Function(_OutletChanged value)? outletChanged,
    TResult Function(_Fetched value)? fetched,
    required TResult orElse(),
  }) {
    if (rangeDateChanged != null) {
      return rangeDateChanged(this);
    }
    return orElse();
  }
}

abstract class _RangeDateChanged implements PurchasingAnalyticLoaderEvent {
  const factory _RangeDateChanged(
    final DateTime dateFrom,
    final DateTime dateTo,
  ) = _$RangeDateChangedImpl;

  DateTime get dateFrom;
  DateTime get dateTo;

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

/// @nodoc
abstract class _$$OutletChangedImplCopyWith<$Res> {
  factory _$$OutletChangedImplCopyWith(
    _$OutletChangedImpl value,
    $Res Function(_$OutletChangedImpl) then,
  ) = __$$OutletChangedImplCopyWithImpl<$Res>;
  @useResult
  $Res call({String? outletId});
}

/// @nodoc
class __$$OutletChangedImplCopyWithImpl<$Res>
    extends
        _$PurchasingAnalyticLoaderEventCopyWithImpl<$Res, _$OutletChangedImpl>
    implements _$$OutletChangedImplCopyWith<$Res> {
  __$$OutletChangedImplCopyWithImpl(
    _$OutletChangedImpl _value,
    $Res Function(_$OutletChangedImpl) _then,
  ) : super(_value, _then);

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

/// @nodoc

class _$OutletChangedImpl implements _OutletChanged {
  const _$OutletChangedImpl(this.outletId);

  @override
  final String? outletId;

  @override
  String toString() {
    return 'PurchasingAnalyticLoaderEvent.outletChanged(outletId: $outletId)';
  }

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

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

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

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(DateTime dateFrom, DateTime dateTo)
    rangeDateChanged,
    required TResult Function(String? outletId) outletChanged,
    required TResult Function() fetched,
  }) {
    return outletChanged(outletId);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(DateTime dateFrom, DateTime dateTo)? rangeDateChanged,
    TResult? Function(String? outletId)? outletChanged,
    TResult? Function()? fetched,
  }) {
    return outletChanged?.call(outletId);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(DateTime dateFrom, DateTime dateTo)? rangeDateChanged,
    TResult Function(String? outletId)? outletChanged,
    TResult Function()? fetched,
    required TResult orElse(),
  }) {
    if (outletChanged != null) {
      return outletChanged(outletId);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_RangeDateChanged value) rangeDateChanged,
    required TResult Function(_OutletChanged value) outletChanged,
    required TResult Function(_Fetched value) fetched,
  }) {
    return outletChanged(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_RangeDateChanged value)? rangeDateChanged,
    TResult? Function(_OutletChanged value)? outletChanged,
    TResult? Function(_Fetched value)? fetched,
  }) {
    return outletChanged?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_RangeDateChanged value)? rangeDateChanged,
    TResult Function(_OutletChanged value)? outletChanged,
    TResult Function(_Fetched value)? fetched,
    required TResult orElse(),
  }) {
    if (outletChanged != null) {
      return outletChanged(this);
    }
    return orElse();
  }
}

abstract class _OutletChanged implements PurchasingAnalyticLoaderEvent {
  const factory _OutletChanged(final String? outletId) = _$OutletChangedImpl;

  String? get outletId;

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

/// @nodoc
abstract class _$$FetchedImplCopyWith<$Res> {
  factory _$$FetchedImplCopyWith(
    _$FetchedImpl value,
    $Res Function(_$FetchedImpl) then,
  ) = __$$FetchedImplCopyWithImpl<$Res>;
}

/// @nodoc
class __$$FetchedImplCopyWithImpl<$Res>
    extends _$PurchasingAnalyticLoaderEventCopyWithImpl<$Res, _$FetchedImpl>
    implements _$$FetchedImplCopyWith<$Res> {
  __$$FetchedImplCopyWithImpl(
    _$FetchedImpl _value,
    $Res Function(_$FetchedImpl) _then,
  ) : super(_value, _then);

  /// Create a copy of PurchasingAnalyticLoaderEvent
  /// with the given fields replaced by the non-null parameter values.
}

/// @nodoc

class _$FetchedImpl implements _Fetched {
  const _$FetchedImpl();

  @override
  String toString() {
    return 'PurchasingAnalyticLoaderEvent.fetched()';
  }

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

  @override
  int get hashCode => runtimeType.hashCode;

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(DateTime dateFrom, DateTime dateTo)
    rangeDateChanged,
    required TResult Function(String? outletId) outletChanged,
    required TResult Function() fetched,
  }) {
    return fetched();
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult? Function(DateTime dateFrom, DateTime dateTo)? rangeDateChanged,
    TResult? Function(String? outletId)? outletChanged,
    TResult? Function()? fetched,
  }) {
    return fetched?.call();
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(DateTime dateFrom, DateTime dateTo)? rangeDateChanged,
    TResult Function(String? outletId)? outletChanged,
    TResult Function()? fetched,
    required TResult orElse(),
  }) {
    if (fetched != null) {
      return fetched();
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_RangeDateChanged value) rangeDateChanged,
    required TResult Function(_OutletChanged value) outletChanged,
    required TResult Function(_Fetched value) fetched,
  }) {
    return fetched(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult? Function(_RangeDateChanged value)? rangeDateChanged,
    TResult? Function(_OutletChanged value)? outletChanged,
    TResult? Function(_Fetched value)? fetched,
  }) {
    return fetched?.call(this);
  }

  @override
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_RangeDateChanged value)? rangeDateChanged,
    TResult Function(_OutletChanged value)? outletChanged,
    TResult Function(_Fetched value)? fetched,
    required TResult orElse(),
  }) {
    if (fetched != null) {
      return fetched(this);
    }
    return orElse();
  }
}

abstract class _Fetched implements PurchasingAnalyticLoaderEvent {
  const factory _Fetched() = _$FetchedImpl;
}

/// @nodoc
mixin _$PurchasingAnalyticLoaderState {
  PurchasingAnalytic get purchasing => throw _privateConstructorUsedError;
  Option<AnalyticFailure> get failureOptionPurchasing =>
      throw _privateConstructorUsedError;
  bool get isFetching => throw _privateConstructorUsedError;
  DateTime get dateFrom => throw _privateConstructorUsedError;
  DateTime get dateTo => throw _privateConstructorUsedError;
  String? get outletId => throw _privateConstructorUsedError;
  String get groupBy => throw _privateConstructorUsedError;

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

/// @nodoc
abstract class $PurchasingAnalyticLoaderStateCopyWith<$Res> {
  factory $PurchasingAnalyticLoaderStateCopyWith(
    PurchasingAnalyticLoaderState value,
    $Res Function(PurchasingAnalyticLoaderState) then,
  ) =
      _$PurchasingAnalyticLoaderStateCopyWithImpl<
        $Res,
        PurchasingAnalyticLoaderState
      >;
  @useResult
  $Res call({
    PurchasingAnalytic purchasing,
    Option<AnalyticFailure> failureOptionPurchasing,
    bool isFetching,
    DateTime dateFrom,
    DateTime dateTo,
    String? outletId,
    String groupBy,
  });

  $PurchasingAnalyticCopyWith<$Res> get purchasing;
}

/// @nodoc
class _$PurchasingAnalyticLoaderStateCopyWithImpl<
  $Res,
  $Val extends PurchasingAnalyticLoaderState
>
    implements $PurchasingAnalyticLoaderStateCopyWith<$Res> {
  _$PurchasingAnalyticLoaderStateCopyWithImpl(this._value, this._then);

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

  /// Create a copy of PurchasingAnalyticLoaderState
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? purchasing = null,
    Object? failureOptionPurchasing = null,
    Object? isFetching = null,
    Object? dateFrom = null,
    Object? dateTo = null,
    Object? outletId = freezed,
    Object? groupBy = null,
  }) {
    return _then(
      _value.copyWith(
            purchasing: null == purchasing
                ? _value.purchasing
                : purchasing // ignore: cast_nullable_to_non_nullable
                      as PurchasingAnalytic,
            failureOptionPurchasing: null == failureOptionPurchasing
                ? _value.failureOptionPurchasing
                : failureOptionPurchasing // ignore: cast_nullable_to_non_nullable
                      as Option<AnalyticFailure>,
            isFetching: null == isFetching
                ? _value.isFetching
                : isFetching // ignore: cast_nullable_to_non_nullable
                      as bool,
            dateFrom: null == dateFrom
                ? _value.dateFrom
                : dateFrom // ignore: cast_nullable_to_non_nullable
                      as DateTime,
            dateTo: null == dateTo
                ? _value.dateTo
                : dateTo // ignore: cast_nullable_to_non_nullable
                      as DateTime,
            outletId: freezed == outletId
                ? _value.outletId
                : outletId // ignore: cast_nullable_to_non_nullable
                      as String?,
            groupBy: null == groupBy
                ? _value.groupBy
                : groupBy // ignore: cast_nullable_to_non_nullable
                      as String,
          )
          as $Val,
    );
  }

  /// Create a copy of PurchasingAnalyticLoaderState
  /// with the given fields replaced by the non-null parameter values.
  @override
  @pragma('vm:prefer-inline')
  $PurchasingAnalyticCopyWith<$Res> get purchasing {
    return $PurchasingAnalyticCopyWith<$Res>(_value.purchasing, (value) {
      return _then(_value.copyWith(purchasing: value) as $Val);
    });
  }
}

/// @nodoc
abstract class _$$PurchasingAnalyticLoaderStateImplCopyWith<$Res>
    implements $PurchasingAnalyticLoaderStateCopyWith<$Res> {
  factory _$$PurchasingAnalyticLoaderStateImplCopyWith(
    _$PurchasingAnalyticLoaderStateImpl value,
    $Res Function(_$PurchasingAnalyticLoaderStateImpl) then,
  ) = __$$PurchasingAnalyticLoaderStateImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call({
    PurchasingAnalytic purchasing,
    Option<AnalyticFailure> failureOptionPurchasing,
    bool isFetching,
    DateTime dateFrom,
    DateTime dateTo,
    String? outletId,
    String groupBy,
  });

  @override
  $PurchasingAnalyticCopyWith<$Res> get purchasing;
}

/// @nodoc
class __$$PurchasingAnalyticLoaderStateImplCopyWithImpl<$Res>
    extends
        _$PurchasingAnalyticLoaderStateCopyWithImpl<
          $Res,
          _$PurchasingAnalyticLoaderStateImpl
        >
    implements _$$PurchasingAnalyticLoaderStateImplCopyWith<$Res> {
  __$$PurchasingAnalyticLoaderStateImplCopyWithImpl(
    _$PurchasingAnalyticLoaderStateImpl _value,
    $Res Function(_$PurchasingAnalyticLoaderStateImpl) _then,
  ) : super(_value, _then);

  /// Create a copy of PurchasingAnalyticLoaderState
  /// with the given fields replaced by the non-null parameter values.
  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? purchasing = null,
    Object? failureOptionPurchasing = null,
    Object? isFetching = null,
    Object? dateFrom = null,
    Object? dateTo = null,
    Object? outletId = freezed,
    Object? groupBy = null,
  }) {
    return _then(
      _$PurchasingAnalyticLoaderStateImpl(
        purchasing: null == purchasing
            ? _value.purchasing
            : purchasing // ignore: cast_nullable_to_non_nullable
                  as PurchasingAnalytic,
        failureOptionPurchasing: null == failureOptionPurchasing
            ? _value.failureOptionPurchasing
            : failureOptionPurchasing // ignore: cast_nullable_to_non_nullable
                  as Option<AnalyticFailure>,
        isFetching: null == isFetching
            ? _value.isFetching
            : isFetching // ignore: cast_nullable_to_non_nullable
                  as bool,
        dateFrom: null == dateFrom
            ? _value.dateFrom
            : dateFrom // ignore: cast_nullable_to_non_nullable
                  as DateTime,
        dateTo: null == dateTo
            ? _value.dateTo
            : dateTo // ignore: cast_nullable_to_non_nullable
                  as DateTime,
        outletId: freezed == outletId
            ? _value.outletId
            : outletId // ignore: cast_nullable_to_non_nullable
                  as String?,
        groupBy: null == groupBy
            ? _value.groupBy
            : groupBy // ignore: cast_nullable_to_non_nullable
                  as String,
      ),
    );
  }
}

/// @nodoc

class _$PurchasingAnalyticLoaderStateImpl
    implements _PurchasingAnalyticLoaderState {
  const _$PurchasingAnalyticLoaderStateImpl({
    required this.purchasing,
    required this.failureOptionPurchasing,
    this.isFetching = false,
    required this.dateFrom,
    required this.dateTo,
    this.outletId,
    this.groupBy = 'day',
  });

  @override
  final PurchasingAnalytic purchasing;
  @override
  final Option<AnalyticFailure> failureOptionPurchasing;
  @override
  @JsonKey()
  final bool isFetching;
  @override
  final DateTime dateFrom;
  @override
  final DateTime dateTo;
  @override
  final String? outletId;
  @override
  @JsonKey()
  final String groupBy;

  @override
  String toString() {
    return 'PurchasingAnalyticLoaderState(purchasing: $purchasing, failureOptionPurchasing: $failureOptionPurchasing, isFetching: $isFetching, dateFrom: $dateFrom, dateTo: $dateTo, outletId: $outletId, groupBy: $groupBy)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$PurchasingAnalyticLoaderStateImpl &&
            (identical(other.purchasing, purchasing) ||
                other.purchasing == purchasing) &&
            (identical(
                  other.failureOptionPurchasing,
                  failureOptionPurchasing,
                ) ||
                other.failureOptionPurchasing == failureOptionPurchasing) &&
            (identical(other.isFetching, isFetching) ||
                other.isFetching == isFetching) &&
            (identical(other.dateFrom, dateFrom) ||
                other.dateFrom == dateFrom) &&
            (identical(other.dateTo, dateTo) || other.dateTo == dateTo) &&
            (identical(other.outletId, outletId) ||
                other.outletId == outletId) &&
            (identical(other.groupBy, groupBy) || other.groupBy == groupBy));
  }

  @override
  int get hashCode => Object.hash(
    runtimeType,
    purchasing,
    failureOptionPurchasing,
    isFetching,
    dateFrom,
    dateTo,
    outletId,
    groupBy,
  );

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

abstract class _PurchasingAnalyticLoaderState
    implements PurchasingAnalyticLoaderState {
  const factory _PurchasingAnalyticLoaderState({
    required final PurchasingAnalytic purchasing,
    required final Option<AnalyticFailure> failureOptionPurchasing,
    final bool isFetching,
    required final DateTime dateFrom,
    required final DateTime dateTo,
    final String? outletId,
    final String groupBy,
  }) = _$PurchasingAnalyticLoaderStateImpl;

  @override
  PurchasingAnalytic get purchasing;
  @override
  Option<AnalyticFailure> get failureOptionPurchasing;
  @override
  bool get isFetching;
  @override
  DateTime get dateFrom;
  @override
  DateTime get dateTo;
  @override
  String? get outletId;
  @override
  String get groupBy;

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