fix: archiver_key not obtained from eh api

This commit is contained in:
2024-12-31 07:32:41 +00:00
committed by GitHub
parent 426396cbb0
commit 754b6bf721
2 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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,