worldhopper/lib/models/entry.g.dart
Felipe M. 58a562abe8
feat: refactor server software abstraction with Kavita REST API integration
Rename all OPDS-prefixed models to generic names (Server, Feed, Entry,
Link, StreamLink), expand the ServerSoftware interface to cover all
server interactions, and implement a full Kavita REST API client that
replaces the OPDS delegation.

- Rename OPDS* models to generic names across ~60 files
- Add database migrations 13 (opds_id → entry_id) and 14 (unify credentials)
- Create OPDSServerSoftware wrapping existing OPDS services
- Create KavitaApiClient for direct Kavita REST API calls
- Create KavitaFeedMapper to convert Kavita JSON to Feed/Entry models
- Rewrite KavitaServerSoftware to use native API (no OPDS delegation)
- Unify server credentials (remove softwareUsername/softwarePassword)
- Simplify add/edit server UI to single auth section
- Add test connection button to server add/edit screens
- Add progress indicator to PublicationCard using local and server data
- Eliminate softwareType branching in reader screens
- Add EntryProgress and fetchEntryProgress to ServerSoftware interface
- Fix Entry.acquisitionLink crash on empty links
- Add 59 new tests covering models, services, and providers
2026-04-06 17:46:48 +02:00

53 lines
1.9 KiB
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'entry.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
_$EntryImpl _$$EntryImplFromJson(Map<String, dynamic> json) => _$EntryImpl(
id: json['id'] as String,
title: json['title'] as String,
summary: json['summary'] as String?,
content: json['content'] as String?,
published: json['published'] == null
? null
: DateTime.parse(json['published'] as String),
updated: json['updated'] == null
? null
: DateTime.parse(json['updated'] as String),
authors: (json['authors'] as List<dynamic>?)
?.map((e) => e as String)
.toList() ??
const [],
categories: (json['categories'] as List<dynamic>?)
?.map((e) => e as String)
.toList() ??
const [],
links: (json['links'] as List<dynamic>?)
?.map((e) => Link.fromJson(e as Map<String, dynamic>))
.toList() ??
const [],
streamLink: json['streamLink'] == null
? null
: StreamLink.fromJson(json['streamLink'] as Map<String, dynamic>),
coverUrl: json['coverUrl'] as String?,
thumbnailUrl: json['thumbnailUrl'] as String?,
);
Map<String, dynamic> _$$EntryImplToJson(_$EntryImpl instance) =>
<String, dynamic>{
'id': instance.id,
'title': instance.title,
'summary': instance.summary,
'content': instance.content,
'published': instance.published?.toIso8601String(),
'updated': instance.updated?.toIso8601String(),
'authors': instance.authors,
'categories': instance.categories,
'links': instance.links,
'streamLink': instance.streamLink,
'coverUrl': instance.coverUrl,
'thumbnailUrl': instance.thumbnailUrl,
};