// 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 'entry.dart'; // ************************************************************************** // FreezedGenerator // ************************************************************************** T _$identity(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'); Entry _$EntryFromJson(Map json) { return _Entry.fromJson(json); } /// @nodoc mixin _$Entry { /// Unique identifier for the entry String get id => throw _privateConstructorUsedError; /// Entry title String get title => throw _privateConstructorUsedError; /// Entry summary/description String? get summary => throw _privateConstructorUsedError; /// Entry content (HTML description) String? get content => throw _privateConstructorUsedError; /// Publication date DateTime? get published => throw _privateConstructorUsedError; /// Last update date DateTime? get updated => throw _privateConstructorUsedError; /// Authors List get authors => throw _privateConstructorUsedError; /// Categories/tags List get categories => throw _privateConstructorUsedError; /// All links associated with this entry List get links => throw _privateConstructorUsedError; /// PSE stream link (if available) StreamLink? get streamLink => throw _privateConstructorUsedError; /// Cover image URL String? get coverUrl => throw _privateConstructorUsedError; /// Thumbnail image URL String? get thumbnailUrl => throw _privateConstructorUsedError; /// Server-reported pages read (0-indexed current position). For EPUB /// entries this is the only place progress is exposed; for image streams /// it mirrors [StreamLink.lastRead]. int? get pagesRead => throw _privateConstructorUsedError; /// Server-reported total page count. int? get totalPages => throw _privateConstructorUsedError; /// Serializes this Entry to a JSON map. Map toJson() => throw _privateConstructorUsedError; /// Create a copy of Entry /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) $EntryCopyWith get copyWith => throw _privateConstructorUsedError; } /// @nodoc abstract class $EntryCopyWith<$Res> { factory $EntryCopyWith(Entry value, $Res Function(Entry) then) = _$EntryCopyWithImpl<$Res, Entry>; @useResult $Res call( {String id, String title, String? summary, String? content, DateTime? published, DateTime? updated, List authors, List categories, List links, StreamLink? streamLink, String? coverUrl, String? thumbnailUrl, int? pagesRead, int? totalPages}); $StreamLinkCopyWith<$Res>? get streamLink; } /// @nodoc class _$EntryCopyWithImpl<$Res, $Val extends Entry> implements $EntryCopyWith<$Res> { _$EntryCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; // ignore: unused_field final $Res Function($Val) _then; /// Create a copy of Entry /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? title = null, Object? summary = freezed, Object? content = freezed, Object? published = freezed, Object? updated = freezed, Object? authors = null, Object? categories = null, Object? links = null, Object? streamLink = freezed, Object? coverUrl = freezed, Object? thumbnailUrl = freezed, Object? pagesRead = freezed, Object? totalPages = freezed, }) { return _then(_value.copyWith( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String, title: null == title ? _value.title : title // ignore: cast_nullable_to_non_nullable as String, summary: freezed == summary ? _value.summary : summary // ignore: cast_nullable_to_non_nullable as String?, content: freezed == content ? _value.content : content // ignore: cast_nullable_to_non_nullable as String?, published: freezed == published ? _value.published : published // ignore: cast_nullable_to_non_nullable as DateTime?, updated: freezed == updated ? _value.updated : updated // ignore: cast_nullable_to_non_nullable as DateTime?, authors: null == authors ? _value.authors : authors // ignore: cast_nullable_to_non_nullable as List, categories: null == categories ? _value.categories : categories // ignore: cast_nullable_to_non_nullable as List, links: null == links ? _value.links : links // ignore: cast_nullable_to_non_nullable as List, streamLink: freezed == streamLink ? _value.streamLink : streamLink // ignore: cast_nullable_to_non_nullable as StreamLink?, coverUrl: freezed == coverUrl ? _value.coverUrl : coverUrl // ignore: cast_nullable_to_non_nullable as String?, thumbnailUrl: freezed == thumbnailUrl ? _value.thumbnailUrl : thumbnailUrl // ignore: cast_nullable_to_non_nullable as String?, pagesRead: freezed == pagesRead ? _value.pagesRead : pagesRead // ignore: cast_nullable_to_non_nullable as int?, totalPages: freezed == totalPages ? _value.totalPages : totalPages // ignore: cast_nullable_to_non_nullable as int?, ) as $Val); } /// Create a copy of Entry /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $StreamLinkCopyWith<$Res>? get streamLink { if (_value.streamLink == null) { return null; } return $StreamLinkCopyWith<$Res>(_value.streamLink!, (value) { return _then(_value.copyWith(streamLink: value) as $Val); }); } } /// @nodoc abstract class _$$EntryImplCopyWith<$Res> implements $EntryCopyWith<$Res> { factory _$$EntryImplCopyWith( _$EntryImpl value, $Res Function(_$EntryImpl) then) = __$$EntryImplCopyWithImpl<$Res>; @override @useResult $Res call( {String id, String title, String? summary, String? content, DateTime? published, DateTime? updated, List authors, List categories, List links, StreamLink? streamLink, String? coverUrl, String? thumbnailUrl, int? pagesRead, int? totalPages}); @override $StreamLinkCopyWith<$Res>? get streamLink; } /// @nodoc class __$$EntryImplCopyWithImpl<$Res> extends _$EntryCopyWithImpl<$Res, _$EntryImpl> implements _$$EntryImplCopyWith<$Res> { __$$EntryImplCopyWithImpl( _$EntryImpl _value, $Res Function(_$EntryImpl) _then) : super(_value, _then); /// Create a copy of Entry /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ Object? id = null, Object? title = null, Object? summary = freezed, Object? content = freezed, Object? published = freezed, Object? updated = freezed, Object? authors = null, Object? categories = null, Object? links = null, Object? streamLink = freezed, Object? coverUrl = freezed, Object? thumbnailUrl = freezed, Object? pagesRead = freezed, Object? totalPages = freezed, }) { return _then(_$EntryImpl( id: null == id ? _value.id : id // ignore: cast_nullable_to_non_nullable as String, title: null == title ? _value.title : title // ignore: cast_nullable_to_non_nullable as String, summary: freezed == summary ? _value.summary : summary // ignore: cast_nullable_to_non_nullable as String?, content: freezed == content ? _value.content : content // ignore: cast_nullable_to_non_nullable as String?, published: freezed == published ? _value.published : published // ignore: cast_nullable_to_non_nullable as DateTime?, updated: freezed == updated ? _value.updated : updated // ignore: cast_nullable_to_non_nullable as DateTime?, authors: null == authors ? _value._authors : authors // ignore: cast_nullable_to_non_nullable as List, categories: null == categories ? _value._categories : categories // ignore: cast_nullable_to_non_nullable as List, links: null == links ? _value._links : links // ignore: cast_nullable_to_non_nullable as List, streamLink: freezed == streamLink ? _value.streamLink : streamLink // ignore: cast_nullable_to_non_nullable as StreamLink?, coverUrl: freezed == coverUrl ? _value.coverUrl : coverUrl // ignore: cast_nullable_to_non_nullable as String?, thumbnailUrl: freezed == thumbnailUrl ? _value.thumbnailUrl : thumbnailUrl // ignore: cast_nullable_to_non_nullable as String?, pagesRead: freezed == pagesRead ? _value.pagesRead : pagesRead // ignore: cast_nullable_to_non_nullable as int?, totalPages: freezed == totalPages ? _value.totalPages : totalPages // ignore: cast_nullable_to_non_nullable as int?, )); } } /// @nodoc @JsonSerializable() class _$EntryImpl extends _Entry { const _$EntryImpl( {required this.id, required this.title, this.summary, this.content, this.published, this.updated, final List authors = const [], final List categories = const [], final List links = const [], this.streamLink, this.coverUrl, this.thumbnailUrl, this.pagesRead, this.totalPages}) : _authors = authors, _categories = categories, _links = links, super._(); factory _$EntryImpl.fromJson(Map json) => _$$EntryImplFromJson(json); /// Unique identifier for the entry @override final String id; /// Entry title @override final String title; /// Entry summary/description @override final String? summary; /// Entry content (HTML description) @override final String? content; /// Publication date @override final DateTime? published; /// Last update date @override final DateTime? updated; /// Authors final List _authors; /// Authors @override @JsonKey() List get authors { if (_authors is EqualUnmodifiableListView) return _authors; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_authors); } /// Categories/tags final List _categories; /// Categories/tags @override @JsonKey() List get categories { if (_categories is EqualUnmodifiableListView) return _categories; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_categories); } /// All links associated with this entry final List _links; /// All links associated with this entry @override @JsonKey() List get links { if (_links is EqualUnmodifiableListView) return _links; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_links); } /// PSE stream link (if available) @override final StreamLink? streamLink; /// Cover image URL @override final String? coverUrl; /// Thumbnail image URL @override final String? thumbnailUrl; /// Server-reported pages read (0-indexed current position). For EPUB /// entries this is the only place progress is exposed; for image streams /// it mirrors [StreamLink.lastRead]. @override final int? pagesRead; /// Server-reported total page count. @override final int? totalPages; @override String toString() { return 'Entry(id: $id, title: $title, summary: $summary, content: $content, published: $published, updated: $updated, authors: $authors, categories: $categories, links: $links, streamLink: $streamLink, coverUrl: $coverUrl, thumbnailUrl: $thumbnailUrl, pagesRead: $pagesRead, totalPages: $totalPages)'; } @override bool operator ==(Object other) { return identical(this, other) || (other.runtimeType == runtimeType && other is _$EntryImpl && (identical(other.id, id) || other.id == id) && (identical(other.title, title) || other.title == title) && (identical(other.summary, summary) || other.summary == summary) && (identical(other.content, content) || other.content == content) && (identical(other.published, published) || other.published == published) && (identical(other.updated, updated) || other.updated == updated) && const DeepCollectionEquality().equals(other._authors, _authors) && const DeepCollectionEquality() .equals(other._categories, _categories) && const DeepCollectionEquality().equals(other._links, _links) && (identical(other.streamLink, streamLink) || other.streamLink == streamLink) && (identical(other.coverUrl, coverUrl) || other.coverUrl == coverUrl) && (identical(other.thumbnailUrl, thumbnailUrl) || other.thumbnailUrl == thumbnailUrl) && (identical(other.pagesRead, pagesRead) || other.pagesRead == pagesRead) && (identical(other.totalPages, totalPages) || other.totalPages == totalPages)); } @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, id, title, summary, content, published, updated, const DeepCollectionEquality().hash(_authors), const DeepCollectionEquality().hash(_categories), const DeepCollectionEquality().hash(_links), streamLink, coverUrl, thumbnailUrl, pagesRead, totalPages); /// Create a copy of Entry /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$EntryImplCopyWith<_$EntryImpl> get copyWith => __$$EntryImplCopyWithImpl<_$EntryImpl>(this, _$identity); @override Map toJson() { return _$$EntryImplToJson( this, ); } } abstract class _Entry extends Entry { const factory _Entry( {required final String id, required final String title, final String? summary, final String? content, final DateTime? published, final DateTime? updated, final List authors, final List categories, final List links, final StreamLink? streamLink, final String? coverUrl, final String? thumbnailUrl, final int? pagesRead, final int? totalPages}) = _$EntryImpl; const _Entry._() : super._(); factory _Entry.fromJson(Map json) = _$EntryImpl.fromJson; /// Unique identifier for the entry @override String get id; /// Entry title @override String get title; /// Entry summary/description @override String? get summary; /// Entry content (HTML description) @override String? get content; /// Publication date @override DateTime? get published; /// Last update date @override DateTime? get updated; /// Authors @override List get authors; /// Categories/tags @override List get categories; /// All links associated with this entry @override List get links; /// PSE stream link (if available) @override StreamLink? get streamLink; /// Cover image URL @override String? get coverUrl; /// Thumbnail image URL @override String? get thumbnailUrl; /// Server-reported pages read (0-indexed current position). For EPUB /// entries this is the only place progress is exposed; for image streams /// it mirrors [StreamLink.lastRead]. @override int? get pagesRead; /// Server-reported total page count. @override int? get totalPages; /// Create a copy of Entry /// with the given fields replaced by the non-null parameter values. @override @JsonKey(includeFromJson: false, includeToJson: false) _$$EntryImplCopyWith<_$EntryImpl> get copyWith => throw _privateConstructorUsedError; }