mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Add export zip dialog
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
import 'api_result.dart';
|
||||
import '../globals.dart';
|
||||
|
||||
part 'gallery.g.dart';
|
||||
@@ -168,3 +169,15 @@ class GalleryData {
|
||||
_$GalleryDataFromJson(json);
|
||||
Map<String, dynamic> toJson() => _$GalleryDataToJson(this);
|
||||
}
|
||||
|
||||
class GMetaInfos {
|
||||
const GMetaInfos({
|
||||
required this.metas,
|
||||
});
|
||||
final Map<int, ApiResult<GMeta>> metas;
|
||||
factory GMetaInfos.fromJson(Map<String, dynamic> json) => GMetaInfos(
|
||||
metas: json.map((key, value) => MapEntry(
|
||||
int.parse(key),
|
||||
ApiResult<GMeta>.fromJson(value as Map<String, dynamic>,
|
||||
(json) => GMeta.fromJson(json as Map<String, dynamic>)))));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user