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

HolidaysState _$HolidaysStateFromJson(Map<String, dynamic> json) {
  return _HolidaysState.fromJson(json);
}

/// @nodoc
mixin _$HolidaysState {
  bool get showPastHolidays => throw _privateConstructorUsedError;
  bool get showDisclaimer => throw _privateConstructorUsedError;
  List<Holiday> get holidays => throw _privateConstructorUsedError;

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

/// @nodoc
abstract class $HolidaysStateCopyWith<$Res> {
  factory $HolidaysStateCopyWith(
          HolidaysState value, $Res Function(HolidaysState) then) =
      _$HolidaysStateCopyWithImpl<$Res, HolidaysState>;
  @useResult
  $Res call(
      {bool showPastHolidays, bool showDisclaimer, List<Holiday> holidays});
}

/// @nodoc
class _$HolidaysStateCopyWithImpl<$Res, $Val extends HolidaysState>
    implements $HolidaysStateCopyWith<$Res> {
  _$HolidaysStateCopyWithImpl(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? showPastHolidays = null,
    Object? showDisclaimer = null,
    Object? holidays = null,
  }) {
    return _then(_value.copyWith(
      showPastHolidays: null == showPastHolidays
          ? _value.showPastHolidays
          : showPastHolidays // ignore: cast_nullable_to_non_nullable
              as bool,
      showDisclaimer: null == showDisclaimer
          ? _value.showDisclaimer
          : showDisclaimer // ignore: cast_nullable_to_non_nullable
              as bool,
      holidays: null == holidays
          ? _value.holidays
          : holidays // ignore: cast_nullable_to_non_nullable
              as List<Holiday>,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$HolidaysStateImplCopyWith<$Res>
    implements $HolidaysStateCopyWith<$Res> {
  factory _$$HolidaysStateImplCopyWith(
          _$HolidaysStateImpl value, $Res Function(_$HolidaysStateImpl) then) =
      __$$HolidaysStateImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call(
      {bool showPastHolidays, bool showDisclaimer, List<Holiday> holidays});
}

/// @nodoc
class __$$HolidaysStateImplCopyWithImpl<$Res>
    extends _$HolidaysStateCopyWithImpl<$Res, _$HolidaysStateImpl>
    implements _$$HolidaysStateImplCopyWith<$Res> {
  __$$HolidaysStateImplCopyWithImpl(
      _$HolidaysStateImpl _value, $Res Function(_$HolidaysStateImpl) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? showPastHolidays = null,
    Object? showDisclaimer = null,
    Object? holidays = null,
  }) {
    return _then(_$HolidaysStateImpl(
      showPastHolidays: null == showPastHolidays
          ? _value.showPastHolidays
          : showPastHolidays // ignore: cast_nullable_to_non_nullable
              as bool,
      showDisclaimer: null == showDisclaimer
          ? _value.showDisclaimer
          : showDisclaimer // ignore: cast_nullable_to_non_nullable
              as bool,
      holidays: null == holidays
          ? _value._holidays
          : holidays // ignore: cast_nullable_to_non_nullable
              as List<Holiday>,
    ));
  }
}

/// @nodoc
@JsonSerializable()
class _$HolidaysStateImpl
    with DiagnosticableTreeMixin
    implements _HolidaysState {
  const _$HolidaysStateImpl(
      {required this.showPastHolidays,
      required this.showDisclaimer,
      required final List<Holiday> holidays})
      : _holidays = holidays;

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

  @override
  final bool showPastHolidays;
  @override
  final bool showDisclaimer;
  final List<Holiday> _holidays;
  @override
  List<Holiday> get holidays {
    if (_holidays is EqualUnmodifiableListView) return _holidays;
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_holidays);
  }

  @override
  String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
    return 'HolidaysState(showPastHolidays: $showPastHolidays, showDisclaimer: $showDisclaimer, holidays: $holidays)';
  }

  @override
  void debugFillProperties(DiagnosticPropertiesBuilder properties) {
    super.debugFillProperties(properties);
    properties
      ..add(DiagnosticsProperty('type', 'HolidaysState'))
      ..add(DiagnosticsProperty('showPastHolidays', showPastHolidays))
      ..add(DiagnosticsProperty('showDisclaimer', showDisclaimer))
      ..add(DiagnosticsProperty('holidays', holidays));
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$HolidaysStateImpl &&
            (identical(other.showPastHolidays, showPastHolidays) ||
                other.showPastHolidays == showPastHolidays) &&
            (identical(other.showDisclaimer, showDisclaimer) ||
                other.showDisclaimer == showDisclaimer) &&
            const DeepCollectionEquality().equals(other._holidays, _holidays));
  }

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

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

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

abstract class _HolidaysState implements HolidaysState {
  const factory _HolidaysState(
      {required final bool showPastHolidays,
      required final bool showDisclaimer,
      required final List<Holiday> holidays}) = _$HolidaysStateImpl;

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

  @override
  bool get showPastHolidays;
  @override
  bool get showDisclaimer;
  @override
  List<Holiday> get holidays;
  @override
  @JsonKey(ignore: true)
  _$$HolidaysStateImplCopyWith<_$HolidaysStateImpl> get copyWith =>
      throw _privateConstructorUsedError;
}

Holiday _$HolidayFromJson(Map<String, dynamic> json) {
  return _Holiday.fromJson(json);
}

/// @nodoc
mixin _$Holiday {
  String get start => throw _privateConstructorUsedError;
  String get end => throw _privateConstructorUsedError;
  int get year => throw _privateConstructorUsedError;
  String get stateCode => throw _privateConstructorUsedError;
  String get name => throw _privateConstructorUsedError;
  String get slug => throw _privateConstructorUsedError;

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

/// @nodoc
abstract class $HolidayCopyWith<$Res> {
  factory $HolidayCopyWith(Holiday value, $Res Function(Holiday) then) =
      _$HolidayCopyWithImpl<$Res, Holiday>;
  @useResult
  $Res call(
      {String start,
      String end,
      int year,
      String stateCode,
      String name,
      String slug});
}

/// @nodoc
class _$HolidayCopyWithImpl<$Res, $Val extends Holiday>
    implements $HolidayCopyWith<$Res> {
  _$HolidayCopyWithImpl(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? start = null,
    Object? end = null,
    Object? year = null,
    Object? stateCode = null,
    Object? name = null,
    Object? slug = null,
  }) {
    return _then(_value.copyWith(
      start: null == start
          ? _value.start
          : start // ignore: cast_nullable_to_non_nullable
              as String,
      end: null == end
          ? _value.end
          : end // ignore: cast_nullable_to_non_nullable
              as String,
      year: null == year
          ? _value.year
          : year // ignore: cast_nullable_to_non_nullable
              as int,
      stateCode: null == stateCode
          ? _value.stateCode
          : stateCode // ignore: cast_nullable_to_non_nullable
              as String,
      name: null == name
          ? _value.name
          : name // ignore: cast_nullable_to_non_nullable
              as String,
      slug: null == slug
          ? _value.slug
          : slug // ignore: cast_nullable_to_non_nullable
              as String,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$HolidayImplCopyWith<$Res> implements $HolidayCopyWith<$Res> {
  factory _$$HolidayImplCopyWith(
          _$HolidayImpl value, $Res Function(_$HolidayImpl) then) =
      __$$HolidayImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call(
      {String start,
      String end,
      int year,
      String stateCode,
      String name,
      String slug});
}

/// @nodoc
class __$$HolidayImplCopyWithImpl<$Res>
    extends _$HolidayCopyWithImpl<$Res, _$HolidayImpl>
    implements _$$HolidayImplCopyWith<$Res> {
  __$$HolidayImplCopyWithImpl(
      _$HolidayImpl _value, $Res Function(_$HolidayImpl) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? start = null,
    Object? end = null,
    Object? year = null,
    Object? stateCode = null,
    Object? name = null,
    Object? slug = null,
  }) {
    return _then(_$HolidayImpl(
      start: null == start
          ? _value.start
          : start // ignore: cast_nullable_to_non_nullable
              as String,
      end: null == end
          ? _value.end
          : end // ignore: cast_nullable_to_non_nullable
              as String,
      year: null == year
          ? _value.year
          : year // ignore: cast_nullable_to_non_nullable
              as int,
      stateCode: null == stateCode
          ? _value.stateCode
          : stateCode // ignore: cast_nullable_to_non_nullable
              as String,
      name: null == name
          ? _value.name
          : name // ignore: cast_nullable_to_non_nullable
              as String,
      slug: null == slug
          ? _value.slug
          : slug // ignore: cast_nullable_to_non_nullable
              as String,
    ));
  }
}

/// @nodoc
@JsonSerializable()
class _$HolidayImpl with DiagnosticableTreeMixin implements _Holiday {
  const _$HolidayImpl(
      {required this.start,
      required this.end,
      required this.year,
      required this.stateCode,
      required this.name,
      required this.slug});

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

  @override
  final String start;
  @override
  final String end;
  @override
  final int year;
  @override
  final String stateCode;
  @override
  final String name;
  @override
  final String slug;

  @override
  String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
    return 'Holiday(start: $start, end: $end, year: $year, stateCode: $stateCode, name: $name, slug: $slug)';
  }

  @override
  void debugFillProperties(DiagnosticPropertiesBuilder properties) {
    super.debugFillProperties(properties);
    properties
      ..add(DiagnosticsProperty('type', 'Holiday'))
      ..add(DiagnosticsProperty('start', start))
      ..add(DiagnosticsProperty('end', end))
      ..add(DiagnosticsProperty('year', year))
      ..add(DiagnosticsProperty('stateCode', stateCode))
      ..add(DiagnosticsProperty('name', name))
      ..add(DiagnosticsProperty('slug', slug));
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$HolidayImpl &&
            (identical(other.start, start) || other.start == start) &&
            (identical(other.end, end) || other.end == end) &&
            (identical(other.year, year) || other.year == year) &&
            (identical(other.stateCode, stateCode) ||
                other.stateCode == stateCode) &&
            (identical(other.name, name) || other.name == name) &&
            (identical(other.slug, slug) || other.slug == slug));
  }

  @JsonKey(ignore: true)
  @override
  int get hashCode =>
      Object.hash(runtimeType, start, end, year, stateCode, name, slug);

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

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

abstract class _Holiday implements Holiday {
  const factory _Holiday(
      {required final String start,
      required final String end,
      required final int year,
      required final String stateCode,
      required final String name,
      required final String slug}) = _$HolidayImpl;

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

  @override
  String get start;
  @override
  String get end;
  @override
  int get year;
  @override
  String get stateCode;
  @override
  String get name;
  @override
  String get slug;
  @override
  @JsonKey(ignore: true)
  _$$HolidayImplCopyWith<_$HolidayImpl> get copyWith =>
      throw _privateConstructorUsedError;
}