diff --git a/lib/api/eh.dart b/lib/api/eh.dart index 33e354e..1f16d61 100644 --- a/lib/api/eh.dart +++ b/lib/api/eh.dart @@ -28,7 +28,7 @@ class GalleryMetadataSingle { const GalleryMetadataSingle({ required this.gid, required this.token, - required this.archiverKey, + this.archiverKey, required this.title, required this.titleJpn, required this.category, @@ -50,7 +50,7 @@ class GalleryMetadataSingle { final int gid; final String token; @JsonKey(name: 'archiver_key') - final String archiverKey; + final String? archiverKey; final String title; @JsonKey(name: 'title_jpn') final String titleJpn; diff --git a/lib/api/eh.g.dart b/lib/api/eh.g.dart index 8897465..bb653e7 100644 --- a/lib/api/eh.g.dart +++ b/lib/api/eh.g.dart @@ -31,7 +31,7 @@ GalleryMetadataSingle _$GalleryMetadataSingleFromJson( GalleryMetadataSingle( gid: (json['gid'] as num).toInt(), token: json['token'] as String, - archiverKey: json['archiver_key'] as String, + archiverKey: json['archiver_key'] as String?, title: json['title'] as String, titleJpn: json['title_jpn'] as String, category: json['category'] as String,