Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-23 16:47:11 +08:00
parent 148e0872b4
commit 418a1e8d39
821 changed files with 29467 additions and 25520 deletions

View File

@@ -20,13 +20,13 @@ class Badge {
});
factory Badge.fromJson(Map<String, dynamic> json) => Badge(
text: json['text'] as String?,
textColor: json['text_color'] as String?,
textColorNight: json['text_color_night'] as String?,
bgColor: json['bg_color'] as String?,
bgColorNight: json['bg_color_night'] as String?,
borderColor: json['border_color'] as String?,
borderColorNight: json['border_color_night'] as String?,
bgStyle: json['bg_style'] as int?,
);
text: json['text'] as String?,
textColor: json['text_color'] as String?,
textColorNight: json['text_color_night'] as String?,
bgColor: json['bg_color'] as String?,
bgColorNight: json['bg_color_night'] as String?,
borderColor: json['border_color'] as String?,
borderColorNight: json['border_color_night'] as String?,
bgStyle: json['bg_style'] as int?,
);
}

View File

@@ -5,7 +5,7 @@ class CursorAttr {
CursorAttr({this.isLastWatchedArc, this.rank});
factory CursorAttr.fromJson(Map<String, dynamic> json) => CursorAttr(
isLastWatchedArc: json['is_last_watched_arc'] as bool?,
rank: json['rank'] as int?,
);
isLastWatchedArc: json['is_last_watched_arc'] as bool?,
rank: json['rank'] as int?,
);
}

View File

@@ -29,7 +29,8 @@ class SpaceArchiveData {
episodicButton: json['episodic_button'] == null
? null
: EpisodicButton.fromJson(
json['episodic_button'] as Map<String, dynamic>),
json['episodic_button'] as Map<String, dynamic>,
),
order: (json['order'] as List<dynamic>?)
?.map((e) => Order.fromJson(e as Map<String, dynamic>))
.toList(),
@@ -40,7 +41,8 @@ class SpaceArchiveData {
lastWatchedLocator: json['last_watched_locator'] == null
? null
: LastWatchedLocator.fromJson(
json['last_watched_locator'] as Map<String, dynamic>),
json['last_watched_locator'] as Map<String, dynamic>,
),
hasNext: json['has_next'] as bool?,
hasPrev: json['has_prev'] as bool?,
next: json['next'],

View File

@@ -5,7 +5,7 @@ class History {
History({this.progress, this.duration});
factory History.fromJson(Map<String, dynamic> json) => History(
progress: json['progress'] as int?,
duration: json['duration'] as int?,
);
progress: json['progress'] as int?,
duration: json['duration'] as int?,
);
}

View File

@@ -5,7 +5,7 @@ class Order {
Order({this.title, this.value});
factory Order.fromJson(Map<String, dynamic> json) => Order(
title: json['title'] as String?,
value: json['value'] as String?,
);
title: json['title'] as String?,
value: json['value'] as String?,
);
}