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

RegionNews _$RegionNewsFromJson(Map<String, dynamic> json) {
  return _RegionNews.fromJson(json);
}

/// @nodoc
mixin _$RegionNews {
  List<News> get news => throw _privateConstructorUsedError;
  String? get nextPage => throw _privateConstructorUsedError;

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

/// @nodoc
abstract class $RegionNewsCopyWith<$Res> {
  factory $RegionNewsCopyWith(
          RegionNews value, $Res Function(RegionNews) then) =
      _$RegionNewsCopyWithImpl<$Res, RegionNews>;
  @useResult
  $Res call({List<News> news, String? nextPage});
}

/// @nodoc
class _$RegionNewsCopyWithImpl<$Res, $Val extends RegionNews>
    implements $RegionNewsCopyWith<$Res> {
  _$RegionNewsCopyWithImpl(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? news = null,
    Object? nextPage = freezed,
  }) {
    return _then(_value.copyWith(
      news: null == news
          ? _value.news
          : news // ignore: cast_nullable_to_non_nullable
              as List<News>,
      nextPage: freezed == nextPage
          ? _value.nextPage
          : nextPage // ignore: cast_nullable_to_non_nullable
              as String?,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$RegionNewsImplCopyWith<$Res>
    implements $RegionNewsCopyWith<$Res> {
  factory _$$RegionNewsImplCopyWith(
          _$RegionNewsImpl value, $Res Function(_$RegionNewsImpl) then) =
      __$$RegionNewsImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call({List<News> news, String? nextPage});
}

/// @nodoc
class __$$RegionNewsImplCopyWithImpl<$Res>
    extends _$RegionNewsCopyWithImpl<$Res, _$RegionNewsImpl>
    implements _$$RegionNewsImplCopyWith<$Res> {
  __$$RegionNewsImplCopyWithImpl(
      _$RegionNewsImpl _value, $Res Function(_$RegionNewsImpl) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? news = null,
    Object? nextPage = freezed,
  }) {
    return _then(_$RegionNewsImpl(
      news: null == news
          ? _value._news
          : news // ignore: cast_nullable_to_non_nullable
              as List<News>,
      nextPage: freezed == nextPage
          ? _value.nextPage
          : nextPage // ignore: cast_nullable_to_non_nullable
              as String?,
    ));
  }
}

/// @nodoc
@JsonSerializable()
class _$RegionNewsImpl with DiagnosticableTreeMixin implements _RegionNews {
  const _$RegionNewsImpl({required final List<News> news, this.nextPage})
      : _news = news;

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

  final List<News> _news;
  @override
  List<News> get news {
    if (_news is EqualUnmodifiableListView) return _news;
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableListView(_news);
  }

  @override
  final String? nextPage;

  @override
  String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
    return 'RegionNews(news: $news, nextPage: $nextPage)';
  }

  @override
  void debugFillProperties(DiagnosticPropertiesBuilder properties) {
    super.debugFillProperties(properties);
    properties
      ..add(DiagnosticsProperty('type', 'RegionNews'))
      ..add(DiagnosticsProperty('news', news))
      ..add(DiagnosticsProperty('nextPage', nextPage));
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$RegionNewsImpl &&
            const DeepCollectionEquality().equals(other._news, _news) &&
            (identical(other.nextPage, nextPage) ||
                other.nextPage == nextPage));
  }

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

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

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

abstract class _RegionNews implements RegionNews {
  const factory _RegionNews(
      {required final List<News> news,
      final String? nextPage}) = _$RegionNewsImpl;

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

  @override
  List<News> get news;
  @override
  String? get nextPage;
  @override
  @JsonKey(ignore: true)
  _$$RegionNewsImplCopyWith<_$RegionNewsImpl> get copyWith =>
      throw _privateConstructorUsedError;
}
