mirrored_repositories/body--watch/lib/presentation/home/charts/bloc
// coverage:ignore-file
// 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, invalid_annotation_target

part of 'filterchart_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 informations: https://github.com/rrousselGit/freezed#custom-getters-and-methods');

/// @nodoc
class _$FilterchartEventTearOff {
  const _$FilterchartEventTearOff();

  _IntialData initialData(
      {required List<ChartDisplayModel> chartDisplayModelList,
      required DurationsEnum durationsEnum,
      required DateTime startDate}) {
    return _IntialData(
      chartDisplayModelList: chartDisplayModelList,
      durationsEnum: durationsEnum,
      startDate: startDate,
    );
  }

  _Filtering filtering(
      {required List<ChartDisplayModel> chartDisplayModelList,
      required DurationsEnum durationsEnum,
      required DateTime startDate,
      required List<String> filterString}) {
    return _Filtering(
      chartDisplayModelList: chartDisplayModelList,
      durationsEnum: durationsEnum,
      startDate: startDate,
      filterString: filterString,
    );
  }
}

/// @nodoc
const $FilterchartEvent = _$FilterchartEventTearOff();

/// @nodoc
mixin _$FilterchartEvent {
  List<ChartDisplayModel> get chartDisplayModelList =>
      throw _privateConstructorUsedError;
  DurationsEnum get durationsEnum => throw _privateConstructorUsedError;
  DateTime get startDate => throw _privateConstructorUsedError;

  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(List<ChartDisplayModel> chartDisplayModelList,
            DurationsEnum durationsEnum, DateTime startDate)
        initialData,
    required TResult Function(
            List<ChartDisplayModel> chartDisplayModelList,
            DurationsEnum durationsEnum,
            DateTime startDate,
            List<String> filterString)
        filtering,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult Function(List<ChartDisplayModel> chartDisplayModelList,
            DurationsEnum durationsEnum, DateTime startDate)?
        initialData,
    TResult Function(
            List<ChartDisplayModel> chartDisplayModelList,
            DurationsEnum durationsEnum,
            DateTime startDate,
            List<String> filterString)?
        filtering,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(List<ChartDisplayModel> chartDisplayModelList,
            DurationsEnum durationsEnum, DateTime startDate)?
        initialData,
    TResult Function(
            List<ChartDisplayModel> chartDisplayModelList,
            DurationsEnum durationsEnum,
            DateTime startDate,
            List<String> filterString)?
        filtering,
    required TResult orElse(),
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_IntialData value) initialData,
    required TResult Function(_Filtering value) filtering,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult Function(_IntialData value)? initialData,
    TResult Function(_Filtering value)? filtering,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_IntialData value)? initialData,
    TResult Function(_Filtering value)? filtering,
    required TResult orElse(),
  }) =>
      throw _privateConstructorUsedError;

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

/// @nodoc
abstract class $FilterchartEventCopyWith<$Res> {
  factory $FilterchartEventCopyWith(
          FilterchartEvent value, $Res Function(FilterchartEvent) then) =
      _$FilterchartEventCopyWithImpl<$Res>;
  $Res call(
      {List<ChartDisplayModel> chartDisplayModelList,
      DurationsEnum durationsEnum,
      DateTime startDate});
}

/// @nodoc
class _$FilterchartEventCopyWithImpl<$Res>
    implements $FilterchartEventCopyWith<$Res> {
  _$FilterchartEventCopyWithImpl(this._value, this._then);

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

  @override
  $Res call({
    Object? chartDisplayModelList = freezed,
    Object? durationsEnum = freezed,
    Object? startDate = freezed,
  }) {
    return _then(_value.copyWith(
      chartDisplayModelList: chartDisplayModelList == freezed
          ? _value.chartDisplayModelList
          : chartDisplayModelList // ignore: cast_nullable_to_non_nullable
              as List<ChartDisplayModel>,
      durationsEnum: durationsEnum == freezed
          ? _value.durationsEnum
          : durationsEnum // ignore: cast_nullable_to_non_nullable
              as DurationsEnum,
      startDate: startDate == freezed
          ? _value.startDate
          : startDate // ignore: cast_nullable_to_non_nullable
              as DateTime,
    ));
  }
}

/// @nodoc
abstract class _$IntialDataCopyWith<$Res>
    implements $FilterchartEventCopyWith<$Res> {
  factory _$IntialDataCopyWith(
          _IntialData value, $Res Function(_IntialData) then) =
      __$IntialDataCopyWithImpl<$Res>;
  @override
  $Res call(
      {List<ChartDisplayModel> chartDisplayModelList,
      DurationsEnum durationsEnum,
      DateTime startDate});
}

/// @nodoc
class __$IntialDataCopyWithImpl<$Res>
    extends _$FilterchartEventCopyWithImpl<$Res>
    implements _$IntialDataCopyWith<$Res> {
  __$IntialDataCopyWithImpl(
      _IntialData _value, $Res Function(_IntialData) _then)
      : super(_value, (v) => _then(v as _IntialData));

  @override
  _IntialData get _value => super._value as _IntialData;

  @override
  $Res call({
    Object? chartDisplayModelList = freezed,
    Object? durationsEnum = freezed,
    Object? startDate = freezed,
  }) {
    return _then(_IntialData(
      chartDisplayModelList: chartDisplayModelList == freezed
          ? _value.chartDisplayModelList
          : chartDisplayModelList // ignore: cast_nullable_to_non_nullable
              as List<ChartDisplayModel>,
      durationsEnum: durationsEnum == freezed
          ? _value.durationsEnum
          : durationsEnum // ignore: cast_nullable_to_non_nullable
              as DurationsEnum,
      startDate: startDate == freezed
          ? _value.startDate
          : startDate // ignore: cast_nullable_to_non_nullable
              as DateTime,
    ));
  }
}

/// @nodoc

class _$_IntialData implements _IntialData {
  const _$_IntialData(
      {required this.chartDisplayModelList,
      required this.durationsEnum,
      required this.startDate});

  @override
  final List<ChartDisplayModel> chartDisplayModelList;
  @override
  final DurationsEnum durationsEnum;
  @override
  final DateTime startDate;

  @override
  String toString() {
    return 'FilterchartEvent.initialData(chartDisplayModelList: $chartDisplayModelList, durationsEnum: $durationsEnum, startDate: $startDate)';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _IntialData &&
            const DeepCollectionEquality()
                .equals(other.chartDisplayModelList, chartDisplayModelList) &&
            const DeepCollectionEquality()
                .equals(other.durationsEnum, durationsEnum) &&
            const DeepCollectionEquality().equals(other.startDate, startDate));
  }

  @override
  int get hashCode => Object.hash(
      runtimeType,
      const DeepCollectionEquality().hash(chartDisplayModelList),
      const DeepCollectionEquality().hash(durationsEnum),
      const DeepCollectionEquality().hash(startDate));

  @JsonKey(ignore: true)
  @override
  _$IntialDataCopyWith<_IntialData> get copyWith =>
      __$IntialDataCopyWithImpl<_IntialData>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(List<ChartDisplayModel> chartDisplayModelList,
            DurationsEnum durationsEnum, DateTime startDate)
        initialData,
    required TResult Function(
            List<ChartDisplayModel> chartDisplayModelList,
            DurationsEnum durationsEnum,
            DateTime startDate,
            List<String> filterString)
        filtering,
  }) {
    return initialData(chartDisplayModelList, durationsEnum, startDate);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult Function(List<ChartDisplayModel> chartDisplayModelList,
            DurationsEnum durationsEnum, DateTime startDate)?
        initialData,
    TResult Function(
            List<ChartDisplayModel> chartDisplayModelList,
            DurationsEnum durationsEnum,
            DateTime startDate,
            List<String> filterString)?
        filtering,
  }) {
    return initialData?.call(chartDisplayModelList, durationsEnum, startDate);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(List<ChartDisplayModel> chartDisplayModelList,
            DurationsEnum durationsEnum, DateTime startDate)?
        initialData,
    TResult Function(
            List<ChartDisplayModel> chartDisplayModelList,
            DurationsEnum durationsEnum,
            DateTime startDate,
            List<String> filterString)?
        filtering,
    required TResult orElse(),
  }) {
    if (initialData != null) {
      return initialData(chartDisplayModelList, durationsEnum, startDate);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_IntialData value) initialData,
    required TResult Function(_Filtering value) filtering,
  }) {
    return initialData(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult Function(_IntialData value)? initialData,
    TResult Function(_Filtering value)? filtering,
  }) {
    return initialData?.call(this);
  }

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

abstract class _IntialData implements FilterchartEvent {
  const factory _IntialData(
      {required List<ChartDisplayModel> chartDisplayModelList,
      required DurationsEnum durationsEnum,
      required DateTime startDate}) = _$_IntialData;

  @override
  List<ChartDisplayModel> get chartDisplayModelList;
  @override
  DurationsEnum get durationsEnum;
  @override
  DateTime get startDate;
  @override
  @JsonKey(ignore: true)
  _$IntialDataCopyWith<_IntialData> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class _$FilteringCopyWith<$Res>
    implements $FilterchartEventCopyWith<$Res> {
  factory _$FilteringCopyWith(
          _Filtering value, $Res Function(_Filtering) then) =
      __$FilteringCopyWithImpl<$Res>;
  @override
  $Res call(
      {List<ChartDisplayModel> chartDisplayModelList,
      DurationsEnum durationsEnum,
      DateTime startDate,
      List<String> filterString});
}

/// @nodoc
class __$FilteringCopyWithImpl<$Res>
    extends _$FilterchartEventCopyWithImpl<$Res>
    implements _$FilteringCopyWith<$Res> {
  __$FilteringCopyWithImpl(_Filtering _value, $Res Function(_Filtering) _then)
      : super(_value, (v) => _then(v as _Filtering));

  @override
  _Filtering get _value => super._value as _Filtering;

  @override
  $Res call({
    Object? chartDisplayModelList = freezed,
    Object? durationsEnum = freezed,
    Object? startDate = freezed,
    Object? filterString = freezed,
  }) {
    return _then(_Filtering(
      chartDisplayModelList: chartDisplayModelList == freezed
          ? _value.chartDisplayModelList
          : chartDisplayModelList // ignore: cast_nullable_to_non_nullable
              as List<ChartDisplayModel>,
      durationsEnum: durationsEnum == freezed
          ? _value.durationsEnum
          : durationsEnum // ignore: cast_nullable_to_non_nullable
              as DurationsEnum,
      startDate: startDate == freezed
          ? _value.startDate
          : startDate // ignore: cast_nullable_to_non_nullable
              as DateTime,
      filterString: filterString == freezed
          ? _value.filterString
          : filterString // ignore: cast_nullable_to_non_nullable
              as List<String>,
    ));
  }
}

/// @nodoc

class _$_Filtering implements _Filtering {
  const _$_Filtering(
      {required this.chartDisplayModelList,
      required this.durationsEnum,
      required this.startDate,
      required this.filterString});

  @override
  final List<ChartDisplayModel> chartDisplayModelList;
  @override
  final DurationsEnum durationsEnum;
  @override
  final DateTime startDate;
  @override
  final List<String> filterString;

  @override
  String toString() {
    return 'FilterchartEvent.filtering(chartDisplayModelList: $chartDisplayModelList, durationsEnum: $durationsEnum, startDate: $startDate, filterString: $filterString)';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _Filtering &&
            const DeepCollectionEquality()
                .equals(other.chartDisplayModelList, chartDisplayModelList) &&
            const DeepCollectionEquality()
                .equals(other.durationsEnum, durationsEnum) &&
            const DeepCollectionEquality().equals(other.startDate, startDate) &&
            const DeepCollectionEquality()
                .equals(other.filterString, filterString));
  }

  @override
  int get hashCode => Object.hash(
      runtimeType,
      const DeepCollectionEquality().hash(chartDisplayModelList),
      const DeepCollectionEquality().hash(durationsEnum),
      const DeepCollectionEquality().hash(startDate),
      const DeepCollectionEquality().hash(filterString));

  @JsonKey(ignore: true)
  @override
  _$FilteringCopyWith<_Filtering> get copyWith =>
      __$FilteringCopyWithImpl<_Filtering>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function(List<ChartDisplayModel> chartDisplayModelList,
            DurationsEnum durationsEnum, DateTime startDate)
        initialData,
    required TResult Function(
            List<ChartDisplayModel> chartDisplayModelList,
            DurationsEnum durationsEnum,
            DateTime startDate,
            List<String> filterString)
        filtering,
  }) {
    return filtering(
        chartDisplayModelList, durationsEnum, startDate, filterString);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult Function(List<ChartDisplayModel> chartDisplayModelList,
            DurationsEnum durationsEnum, DateTime startDate)?
        initialData,
    TResult Function(
            List<ChartDisplayModel> chartDisplayModelList,
            DurationsEnum durationsEnum,
            DateTime startDate,
            List<String> filterString)?
        filtering,
  }) {
    return filtering?.call(
        chartDisplayModelList, durationsEnum, startDate, filterString);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function(List<ChartDisplayModel> chartDisplayModelList,
            DurationsEnum durationsEnum, DateTime startDate)?
        initialData,
    TResult Function(
            List<ChartDisplayModel> chartDisplayModelList,
            DurationsEnum durationsEnum,
            DateTime startDate,
            List<String> filterString)?
        filtering,
    required TResult orElse(),
  }) {
    if (filtering != null) {
      return filtering(
          chartDisplayModelList, durationsEnum, startDate, filterString);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_IntialData value) initialData,
    required TResult Function(_Filtering value) filtering,
  }) {
    return filtering(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult Function(_IntialData value)? initialData,
    TResult Function(_Filtering value)? filtering,
  }) {
    return filtering?.call(this);
  }

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

abstract class _Filtering implements FilterchartEvent {
  const factory _Filtering(
      {required List<ChartDisplayModel> chartDisplayModelList,
      required DurationsEnum durationsEnum,
      required DateTime startDate,
      required List<String> filterString}) = _$_Filtering;

  @override
  List<ChartDisplayModel> get chartDisplayModelList;
  @override
  DurationsEnum get durationsEnum;
  @override
  DateTime get startDate;
  List<String> get filterString;
  @override
  @JsonKey(ignore: true)
  _$FilteringCopyWith<_Filtering> get copyWith =>
      throw _privateConstructorUsedError;
}

/// @nodoc
class _$FilterchartStateTearOff {
  const _$FilterchartStateTearOff();

  _Initial initial() {
    return const _Initial();
  }

  _Data data(
      {required List<ChartDisplayModel> chartDisplayModelList,
      required DurationsEnum durationsEnum,
      required DateTime startDate,
      required List<String> filteredTypes}) {
    return _Data(
      chartDisplayModelList: chartDisplayModelList,
      durationsEnum: durationsEnum,
      startDate: startDate,
      filteredTypes: filteredTypes,
    );
  }
}

/// @nodoc
const $FilterchartState = _$FilterchartStateTearOff();

/// @nodoc
mixin _$FilterchartState {
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() initial,
    required TResult Function(
            List<ChartDisplayModel> chartDisplayModelList,
            DurationsEnum durationsEnum,
            DateTime startDate,
            List<String> filteredTypes)
        data,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult Function()? initial,
    TResult Function(
            List<ChartDisplayModel> chartDisplayModelList,
            DurationsEnum durationsEnum,
            DateTime startDate,
            List<String> filteredTypes)?
        data,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? initial,
    TResult Function(
            List<ChartDisplayModel> chartDisplayModelList,
            DurationsEnum durationsEnum,
            DateTime startDate,
            List<String> filteredTypes)?
        data,
    required TResult orElse(),
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_Initial value) initial,
    required TResult Function(_Data value) data,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult Function(_Initial value)? initial,
    TResult Function(_Data value)? data,
  }) =>
      throw _privateConstructorUsedError;
  @optionalTypeArgs
  TResult maybeMap<TResult extends Object?>({
    TResult Function(_Initial value)? initial,
    TResult Function(_Data value)? data,
    required TResult orElse(),
  }) =>
      throw _privateConstructorUsedError;
}

/// @nodoc
abstract class $FilterchartStateCopyWith<$Res> {
  factory $FilterchartStateCopyWith(
          FilterchartState value, $Res Function(FilterchartState) then) =
      _$FilterchartStateCopyWithImpl<$Res>;
}

/// @nodoc
class _$FilterchartStateCopyWithImpl<$Res>
    implements $FilterchartStateCopyWith<$Res> {
  _$FilterchartStateCopyWithImpl(this._value, this._then);

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

/// @nodoc
abstract class _$InitialCopyWith<$Res> {
  factory _$InitialCopyWith(_Initial value, $Res Function(_Initial) then) =
      __$InitialCopyWithImpl<$Res>;
}

/// @nodoc
class __$InitialCopyWithImpl<$Res> extends _$FilterchartStateCopyWithImpl<$Res>
    implements _$InitialCopyWith<$Res> {
  __$InitialCopyWithImpl(_Initial _value, $Res Function(_Initial) _then)
      : super(_value, (v) => _then(v as _Initial));

  @override
  _Initial get _value => super._value as _Initial;
}

/// @nodoc

class _$_Initial implements _Initial {
  const _$_Initial();

  @override
  String toString() {
    return 'FilterchartState.initial()';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType && other is _Initial);
  }

  @override
  int get hashCode => runtimeType.hashCode;

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() initial,
    required TResult Function(
            List<ChartDisplayModel> chartDisplayModelList,
            DurationsEnum durationsEnum,
            DateTime startDate,
            List<String> filteredTypes)
        data,
  }) {
    return initial();
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult Function()? initial,
    TResult Function(
            List<ChartDisplayModel> chartDisplayModelList,
            DurationsEnum durationsEnum,
            DateTime startDate,
            List<String> filteredTypes)?
        data,
  }) {
    return initial?.call();
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? initial,
    TResult Function(
            List<ChartDisplayModel> chartDisplayModelList,
            DurationsEnum durationsEnum,
            DateTime startDate,
            List<String> filteredTypes)?
        data,
    required TResult orElse(),
  }) {
    if (initial != null) {
      return initial();
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_Initial value) initial,
    required TResult Function(_Data value) data,
  }) {
    return initial(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult Function(_Initial value)? initial,
    TResult Function(_Data value)? data,
  }) {
    return initial?.call(this);
  }

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

abstract class _Initial implements FilterchartState {
  const factory _Initial() = _$_Initial;
}

/// @nodoc
abstract class _$DataCopyWith<$Res> {
  factory _$DataCopyWith(_Data value, $Res Function(_Data) then) =
      __$DataCopyWithImpl<$Res>;
  $Res call(
      {List<ChartDisplayModel> chartDisplayModelList,
      DurationsEnum durationsEnum,
      DateTime startDate,
      List<String> filteredTypes});
}

/// @nodoc
class __$DataCopyWithImpl<$Res> extends _$FilterchartStateCopyWithImpl<$Res>
    implements _$DataCopyWith<$Res> {
  __$DataCopyWithImpl(_Data _value, $Res Function(_Data) _then)
      : super(_value, (v) => _then(v as _Data));

  @override
  _Data get _value => super._value as _Data;

  @override
  $Res call({
    Object? chartDisplayModelList = freezed,
    Object? durationsEnum = freezed,
    Object? startDate = freezed,
    Object? filteredTypes = freezed,
  }) {
    return _then(_Data(
      chartDisplayModelList: chartDisplayModelList == freezed
          ? _value.chartDisplayModelList
          : chartDisplayModelList // ignore: cast_nullable_to_non_nullable
              as List<ChartDisplayModel>,
      durationsEnum: durationsEnum == freezed
          ? _value.durationsEnum
          : durationsEnum // ignore: cast_nullable_to_non_nullable
              as DurationsEnum,
      startDate: startDate == freezed
          ? _value.startDate
          : startDate // ignore: cast_nullable_to_non_nullable
              as DateTime,
      filteredTypes: filteredTypes == freezed
          ? _value.filteredTypes
          : filteredTypes // ignore: cast_nullable_to_non_nullable
              as List<String>,
    ));
  }
}

/// @nodoc

class _$_Data implements _Data {
  const _$_Data(
      {required this.chartDisplayModelList,
      required this.durationsEnum,
      required this.startDate,
      required this.filteredTypes});

  @override
  final List<ChartDisplayModel> chartDisplayModelList;
  @override
  final DurationsEnum durationsEnum;
  @override
  final DateTime startDate;
  @override
  final List<String> filteredTypes;

  @override
  String toString() {
    return 'FilterchartState.data(chartDisplayModelList: $chartDisplayModelList, durationsEnum: $durationsEnum, startDate: $startDate, filteredTypes: $filteredTypes)';
  }

  @override
  bool operator ==(dynamic other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _Data &&
            const DeepCollectionEquality()
                .equals(other.chartDisplayModelList, chartDisplayModelList) &&
            const DeepCollectionEquality()
                .equals(other.durationsEnum, durationsEnum) &&
            const DeepCollectionEquality().equals(other.startDate, startDate) &&
            const DeepCollectionEquality()
                .equals(other.filteredTypes, filteredTypes));
  }

  @override
  int get hashCode => Object.hash(
      runtimeType,
      const DeepCollectionEquality().hash(chartDisplayModelList),
      const DeepCollectionEquality().hash(durationsEnum),
      const DeepCollectionEquality().hash(startDate),
      const DeepCollectionEquality().hash(filteredTypes));

  @JsonKey(ignore: true)
  @override
  _$DataCopyWith<_Data> get copyWith =>
      __$DataCopyWithImpl<_Data>(this, _$identity);

  @override
  @optionalTypeArgs
  TResult when<TResult extends Object?>({
    required TResult Function() initial,
    required TResult Function(
            List<ChartDisplayModel> chartDisplayModelList,
            DurationsEnum durationsEnum,
            DateTime startDate,
            List<String> filteredTypes)
        data,
  }) {
    return data(chartDisplayModelList, durationsEnum, startDate, filteredTypes);
  }

  @override
  @optionalTypeArgs
  TResult? whenOrNull<TResult extends Object?>({
    TResult Function()? initial,
    TResult Function(
            List<ChartDisplayModel> chartDisplayModelList,
            DurationsEnum durationsEnum,
            DateTime startDate,
            List<String> filteredTypes)?
        data,
  }) {
    return data?.call(
        chartDisplayModelList, durationsEnum, startDate, filteredTypes);
  }

  @override
  @optionalTypeArgs
  TResult maybeWhen<TResult extends Object?>({
    TResult Function()? initial,
    TResult Function(
            List<ChartDisplayModel> chartDisplayModelList,
            DurationsEnum durationsEnum,
            DateTime startDate,
            List<String> filteredTypes)?
        data,
    required TResult orElse(),
  }) {
    if (data != null) {
      return data(
          chartDisplayModelList, durationsEnum, startDate, filteredTypes);
    }
    return orElse();
  }

  @override
  @optionalTypeArgs
  TResult map<TResult extends Object?>({
    required TResult Function(_Initial value) initial,
    required TResult Function(_Data value) data,
  }) {
    return data(this);
  }

  @override
  @optionalTypeArgs
  TResult? mapOrNull<TResult extends Object?>({
    TResult Function(_Initial value)? initial,
    TResult Function(_Data value)? data,
  }) {
    return data?.call(this);
  }

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

abstract class _Data implements FilterchartState {
  const factory _Data(
      {required List<ChartDisplayModel> chartDisplayModelList,
      required DurationsEnum durationsEnum,
      required DateTime startDate,
      required List<String> filteredTypes}) = _$_Data;

  List<ChartDisplayModel> get chartDisplayModelList;
  DurationsEnum get durationsEnum;
  DateTime get startDate;
  List<String> get filteredTypes;
  @JsonKey(ignore: true)
  _$DataCopyWith<_Data> get copyWith => throw _privateConstructorUsedError;
}
