mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
@@ -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?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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'],
|
||||
|
||||
@@ -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?,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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?,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user