// 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 'chapter_model.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#custom-getters-and-methods');

Chapter _$ChapterFromJson(Map<String, dynamic> json) {
  return _Chapter.fromJson(json);
}

/// @nodoc
mixin _$Chapter {
  int? get id => throw _privateConstructorUsedError;
  bool? get bookmarked => throw _privateConstructorUsedError;
  int? get chapterCount => throw _privateConstructorUsedError;
  double? get chapterNumber => throw _privateConstructorUsedError;
  bool? get downloaded => throw _privateConstructorUsedError;
  int? get fetchedAt => throw _privateConstructorUsedError;
  int? get index => throw _privateConstructorUsedError;
  int? get lastPageRead => throw _privateConstructorUsedError;
  int? get lastReadAt => throw _privateConstructorUsedError;
  int? get mangaId => throw _privateConstructorUsedError;
  String? get name => throw _privateConstructorUsedError;
  int? get pageCount => throw _privateConstructorUsedError;
  bool? get read => throw _privateConstructorUsedError;
  String? get realUrl => throw _privateConstructorUsedError;
  String? get scanlator => throw _privateConstructorUsedError;
  int? get uploadDate => throw _privateConstructorUsedError;
  String? get url => throw _privateConstructorUsedError;
  Map<String, String>? get meta => throw _privateConstructorUsedError;

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

/// @nodoc
abstract class $ChapterCopyWith<$Res> {
  factory $ChapterCopyWith(Chapter value, $Res Function(Chapter) then) =
      _$ChapterCopyWithImpl<$Res, Chapter>;
  @useResult
  $Res call(
      {int? id,
      bool? bookmarked,
      int? chapterCount,
      double? chapterNumber,
      bool? downloaded,
      int? fetchedAt,
      int? index,
      int? lastPageRead,
      int? lastReadAt,
      int? mangaId,
      String? name,
      int? pageCount,
      bool? read,
      String? realUrl,
      String? scanlator,
      int? uploadDate,
      String? url,
      Map<String, String>? meta});
}

/// @nodoc
class _$ChapterCopyWithImpl<$Res, $Val extends Chapter>
    implements $ChapterCopyWith<$Res> {
  _$ChapterCopyWithImpl(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? id = freezed,
    Object? bookmarked = freezed,
    Object? chapterCount = freezed,
    Object? chapterNumber = freezed,
    Object? downloaded = freezed,
    Object? fetchedAt = freezed,
    Object? index = freezed,
    Object? lastPageRead = freezed,
    Object? lastReadAt = freezed,
    Object? mangaId = freezed,
    Object? name = freezed,
    Object? pageCount = freezed,
    Object? read = freezed,
    Object? realUrl = freezed,
    Object? scanlator = freezed,
    Object? uploadDate = freezed,
    Object? url = freezed,
    Object? meta = freezed,
  }) {
    return _then(_value.copyWith(
      id: freezed == id
          ? _value.id
          : id // ignore: cast_nullable_to_non_nullable
              as int?,
      bookmarked: freezed == bookmarked
          ? _value.bookmarked
          : bookmarked // ignore: cast_nullable_to_non_nullable
              as bool?,
      chapterCount: freezed == chapterCount
          ? _value.chapterCount
          : chapterCount // ignore: cast_nullable_to_non_nullable
              as int?,
      chapterNumber: freezed == chapterNumber
          ? _value.chapterNumber
          : chapterNumber // ignore: cast_nullable_to_non_nullable
              as double?,
      downloaded: freezed == downloaded
          ? _value.downloaded
          : downloaded // ignore: cast_nullable_to_non_nullable
              as bool?,
      fetchedAt: freezed == fetchedAt
          ? _value.fetchedAt
          : fetchedAt // ignore: cast_nullable_to_non_nullable
              as int?,
      index: freezed == index
          ? _value.index
          : index // ignore: cast_nullable_to_non_nullable
              as int?,
      lastPageRead: freezed == lastPageRead
          ? _value.lastPageRead
          : lastPageRead // ignore: cast_nullable_to_non_nullable
              as int?,
      lastReadAt: freezed == lastReadAt
          ? _value.lastReadAt
          : lastReadAt // ignore: cast_nullable_to_non_nullable
              as int?,
      mangaId: freezed == mangaId
          ? _value.mangaId
          : mangaId // ignore: cast_nullable_to_non_nullable
              as int?,
      name: freezed == name
          ? _value.name
          : name // ignore: cast_nullable_to_non_nullable
              as String?,
      pageCount: freezed == pageCount
          ? _value.pageCount
          : pageCount // ignore: cast_nullable_to_non_nullable
              as int?,
      read: freezed == read
          ? _value.read
          : read // ignore: cast_nullable_to_non_nullable
              as bool?,
      realUrl: freezed == realUrl
          ? _value.realUrl
          : realUrl // ignore: cast_nullable_to_non_nullable
              as String?,
      scanlator: freezed == scanlator
          ? _value.scanlator
          : scanlator // ignore: cast_nullable_to_non_nullable
              as String?,
      uploadDate: freezed == uploadDate
          ? _value.uploadDate
          : uploadDate // ignore: cast_nullable_to_non_nullable
              as int?,
      url: freezed == url
          ? _value.url
          : url // ignore: cast_nullable_to_non_nullable
              as String?,
      meta: freezed == meta
          ? _value.meta
          : meta // ignore: cast_nullable_to_non_nullable
              as Map<String, String>?,
    ) as $Val);
  }
}

/// @nodoc
abstract class _$$ChapterImplCopyWith<$Res> implements $ChapterCopyWith<$Res> {
  factory _$$ChapterImplCopyWith(
          _$ChapterImpl value, $Res Function(_$ChapterImpl) then) =
      __$$ChapterImplCopyWithImpl<$Res>;
  @override
  @useResult
  $Res call(
      {int? id,
      bool? bookmarked,
      int? chapterCount,
      double? chapterNumber,
      bool? downloaded,
      int? fetchedAt,
      int? index,
      int? lastPageRead,
      int? lastReadAt,
      int? mangaId,
      String? name,
      int? pageCount,
      bool? read,
      String? realUrl,
      String? scanlator,
      int? uploadDate,
      String? url,
      Map<String, String>? meta});
}

/// @nodoc
class __$$ChapterImplCopyWithImpl<$Res>
    extends _$ChapterCopyWithImpl<$Res, _$ChapterImpl>
    implements _$$ChapterImplCopyWith<$Res> {
  __$$ChapterImplCopyWithImpl(
      _$ChapterImpl _value, $Res Function(_$ChapterImpl) _then)
      : super(_value, _then);

  @pragma('vm:prefer-inline')
  @override
  $Res call({
    Object? id = freezed,
    Object? bookmarked = freezed,
    Object? chapterCount = freezed,
    Object? chapterNumber = freezed,
    Object? downloaded = freezed,
    Object? fetchedAt = freezed,
    Object? index = freezed,
    Object? lastPageRead = freezed,
    Object? lastReadAt = freezed,
    Object? mangaId = freezed,
    Object? name = freezed,
    Object? pageCount = freezed,
    Object? read = freezed,
    Object? realUrl = freezed,
    Object? scanlator = freezed,
    Object? uploadDate = freezed,
    Object? url = freezed,
    Object? meta = freezed,
  }) {
    return _then(_$ChapterImpl(
      id: freezed == id
          ? _value.id
          : id // ignore: cast_nullable_to_non_nullable
              as int?,
      bookmarked: freezed == bookmarked
          ? _value.bookmarked
          : bookmarked // ignore: cast_nullable_to_non_nullable
              as bool?,
      chapterCount: freezed == chapterCount
          ? _value.chapterCount
          : chapterCount // ignore: cast_nullable_to_non_nullable
              as int?,
      chapterNumber: freezed == chapterNumber
          ? _value.chapterNumber
          : chapterNumber // ignore: cast_nullable_to_non_nullable
              as double?,
      downloaded: freezed == downloaded
          ? _value.downloaded
          : downloaded // ignore: cast_nullable_to_non_nullable
              as bool?,
      fetchedAt: freezed == fetchedAt
          ? _value.fetchedAt
          : fetchedAt // ignore: cast_nullable_to_non_nullable
              as int?,
      index: freezed == index
          ? _value.index
          : index // ignore: cast_nullable_to_non_nullable
              as int?,
      lastPageRead: freezed == lastPageRead
          ? _value.lastPageRead
          : lastPageRead // ignore: cast_nullable_to_non_nullable
              as int?,
      lastReadAt: freezed == lastReadAt
          ? _value.lastReadAt
          : lastReadAt // ignore: cast_nullable_to_non_nullable
              as int?,
      mangaId: freezed == mangaId
          ? _value.mangaId
          : mangaId // ignore: cast_nullable_to_non_nullable
              as int?,
      name: freezed == name
          ? _value.name
          : name // ignore: cast_nullable_to_non_nullable
              as String?,
      pageCount: freezed == pageCount
          ? _value.pageCount
          : pageCount // ignore: cast_nullable_to_non_nullable
              as int?,
      read: freezed == read
          ? _value.read
          : read // ignore: cast_nullable_to_non_nullable
              as bool?,
      realUrl: freezed == realUrl
          ? _value.realUrl
          : realUrl // ignore: cast_nullable_to_non_nullable
              as String?,
      scanlator: freezed == scanlator
          ? _value.scanlator
          : scanlator // ignore: cast_nullable_to_non_nullable
              as String?,
      uploadDate: freezed == uploadDate
          ? _value.uploadDate
          : uploadDate // ignore: cast_nullable_to_non_nullable
              as int?,
      url: freezed == url
          ? _value.url
          : url // ignore: cast_nullable_to_non_nullable
              as String?,
      meta: freezed == meta
          ? _value._meta
          : meta // ignore: cast_nullable_to_non_nullable
              as Map<String, String>?,
    ));
  }
}

/// @nodoc
@JsonSerializable()
class _$ChapterImpl extends _Chapter {
  _$ChapterImpl(
      {this.id,
      this.bookmarked,
      this.chapterCount,
      this.chapterNumber,
      this.downloaded,
      this.fetchedAt,
      this.index,
      this.lastPageRead,
      this.lastReadAt,
      this.mangaId,
      this.name,
      this.pageCount,
      this.read,
      this.realUrl,
      this.scanlator,
      this.uploadDate,
      this.url,
      final Map<String, String>? meta})
      : _meta = meta,
        super._();

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

  @override
  final int? id;
  @override
  final bool? bookmarked;
  @override
  final int? chapterCount;
  @override
  final double? chapterNumber;
  @override
  final bool? downloaded;
  @override
  final int? fetchedAt;
  @override
  final int? index;
  @override
  final int? lastPageRead;
  @override
  final int? lastReadAt;
  @override
  final int? mangaId;
  @override
  final String? name;
  @override
  final int? pageCount;
  @override
  final bool? read;
  @override
  final String? realUrl;
  @override
  final String? scanlator;
  @override
  final int? uploadDate;
  @override
  final String? url;
  final Map<String, String>? _meta;
  @override
  Map<String, String>? get meta {
    final value = _meta;
    if (value == null) return null;
    if (_meta is EqualUnmodifiableMapView) return _meta;
    // ignore: implicit_dynamic_type
    return EqualUnmodifiableMapView(value);
  }

  @override
  String toString() {
    return 'Chapter(id: $id, bookmarked: $bookmarked, chapterCount: $chapterCount, chapterNumber: $chapterNumber, downloaded: $downloaded, fetchedAt: $fetchedAt, index: $index, lastPageRead: $lastPageRead, lastReadAt: $lastReadAt, mangaId: $mangaId, name: $name, pageCount: $pageCount, read: $read, realUrl: $realUrl, scanlator: $scanlator, uploadDate: $uploadDate, url: $url, meta: $meta)';
  }

  @override
  bool operator ==(Object other) {
    return identical(this, other) ||
        (other.runtimeType == runtimeType &&
            other is _$ChapterImpl &&
            (identical(other.id, id) || other.id == id) &&
            (identical(other.bookmarked, bookmarked) ||
                other.bookmarked == bookmarked) &&
            (identical(other.chapterCount, chapterCount) ||
                other.chapterCount == chapterCount) &&
            (identical(other.chapterNumber, chapterNumber) ||
                other.chapterNumber == chapterNumber) &&
            (identical(other.downloaded, downloaded) ||
                other.downloaded == downloaded) &&
            (identical(other.fetchedAt, fetchedAt) ||
                other.fetchedAt == fetchedAt) &&
            (identical(other.index, index) || other.index == index) &&
            (identical(other.lastPageRead, lastPageRead) ||
                other.lastPageRead == lastPageRead) &&
            (identical(other.lastReadAt, lastReadAt) ||
                other.lastReadAt == lastReadAt) &&
            (identical(other.mangaId, mangaId) || other.mangaId == mangaId) &&
            (identical(other.name, name) || other.name == name) &&
            (identical(other.pageCount, pageCount) ||
                other.pageCount == pageCount) &&
            (identical(other.read, read) || other.read == read) &&
            (identical(other.realUrl, realUrl) || other.realUrl == realUrl) &&
            (identical(other.scanlator, scanlator) ||
                other.scanlator == scanlator) &&
            (identical(other.uploadDate, uploadDate) ||
                other.uploadDate == uploadDate) &&
            (identical(other.url, url) || other.url == url) &&
            const DeepCollectionEquality().equals(other._meta, _meta));
  }

  @JsonKey(ignore: true)
  @override
  int get hashCode => Object.hash(
      runtimeType,
      id,
      bookmarked,
      chapterCount,
      chapterNumber,
      downloaded,
      fetchedAt,
      index,
      lastPageRead,
      lastReadAt,
      mangaId,
      name,
      pageCount,
      read,
      realUrl,
      scanlator,
      uploadDate,
      url,
      const DeepCollectionEquality().hash(_meta));

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

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

abstract class _Chapter extends Chapter {
  factory _Chapter(
      {final int? id,
      final bool? bookmarked,
      final int? chapterCount,
      final double? chapterNumber,
      final bool? downloaded,
      final int? fetchedAt,
      final int? index,
      final int? lastPageRead,
      final int? lastReadAt,
      final int? mangaId,
      final String? name,
      final int? pageCount,
      final bool? read,
      final String? realUrl,
      final String? scanlator,
      final int? uploadDate,
      final String? url,
      final Map<String, String>? meta}) = _$ChapterImpl;
  _Chapter._() : super._();

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

  @override
  int? get id;
  @override
  bool? get bookmarked;
  @override
  int? get chapterCount;
  @override
  double? get chapterNumber;
  @override
  bool? get downloaded;
  @override
  int? get fetchedAt;
  @override
  int? get index;
  @override
  int? get lastPageRead;
  @override
  int? get lastReadAt;
  @override
  int? get mangaId;
  @override
  String? get name;
  @override
  int? get pageCount;
  @override
  bool? get read;
  @override
  String? get realUrl;
  @override
  String? get scanlator;
  @override
  int? get uploadDate;
  @override
  String? get url;
  @override
  Map<String, String>? get meta;
  @override
  @JsonKey(ignore: true)
  _$$ChapterImplCopyWith<_$ChapterImpl> get copyWith =>
      throw _privateConstructorUsedError;
}
