mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Add new API
This commit is contained in:
@@ -237,3 +237,18 @@ class GMetaSearchInfo {
|
||||
: titleJpn
|
||||
: title;
|
||||
}
|
||||
|
||||
class GalleryThumbnails {
|
||||
const GalleryThumbnails({
|
||||
required this.thumbnails,
|
||||
});
|
||||
final Map<int, ApiResult<ExtendedPMeta>> thumbnails;
|
||||
factory GalleryThumbnails.fromJson(Map<String, dynamic> json) =>
|
||||
GalleryThumbnails(
|
||||
thumbnails: json.map((key, value) => MapEntry(
|
||||
int.parse(key),
|
||||
ApiResult<ExtendedPMeta>.fromJson(
|
||||
value as Map<String, dynamic>,
|
||||
(json) =>
|
||||
ExtendedPMeta.fromJson(json as Map<String, dynamic>)))));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user