mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-25 19:46:47 +08:00
@@ -4,34 +4,34 @@ part 'badge.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class Badge {
|
||||
String? text;
|
||||
@JsonKey(name: 'text_color')
|
||||
String? textColor;
|
||||
@JsonKey(name: 'text_color_night')
|
||||
String? textColorNight;
|
||||
@JsonKey(name: 'bg_color')
|
||||
String? bgColor;
|
||||
@JsonKey(name: 'bg_color_night')
|
||||
String? bgColorNight;
|
||||
@JsonKey(name: 'border_color')
|
||||
String? borderColor;
|
||||
@JsonKey(name: 'border_color_night')
|
||||
String? borderColorNight;
|
||||
@JsonKey(name: 'bg_style')
|
||||
int? bgStyle;
|
||||
String? text;
|
||||
@JsonKey(name: 'text_color')
|
||||
String? textColor;
|
||||
@JsonKey(name: 'text_color_night')
|
||||
String? textColorNight;
|
||||
@JsonKey(name: 'bg_color')
|
||||
String? bgColor;
|
||||
@JsonKey(name: 'bg_color_night')
|
||||
String? bgColorNight;
|
||||
@JsonKey(name: 'border_color')
|
||||
String? borderColor;
|
||||
@JsonKey(name: 'border_color_night')
|
||||
String? borderColorNight;
|
||||
@JsonKey(name: 'bg_style')
|
||||
int? bgStyle;
|
||||
|
||||
Badge({
|
||||
this.text,
|
||||
this.textColor,
|
||||
this.textColorNight,
|
||||
this.bgColor,
|
||||
this.bgColorNight,
|
||||
this.borderColor,
|
||||
this.borderColorNight,
|
||||
this.bgStyle,
|
||||
});
|
||||
Badge({
|
||||
this.text,
|
||||
this.textColor,
|
||||
this.textColorNight,
|
||||
this.bgColor,
|
||||
this.bgColorNight,
|
||||
this.borderColor,
|
||||
this.borderColorNight,
|
||||
this.bgStyle,
|
||||
});
|
||||
|
||||
factory Badge.fromJson(Map<String, dynamic> json) => _$BadgeFromJson(json);
|
||||
factory Badge.fromJson(Map<String, dynamic> json) => _$BadgeFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$BadgeToJson(this);
|
||||
Map<String, dynamic> toJson() => _$BadgeToJson(this);
|
||||
}
|
||||
|
||||
@@ -4,15 +4,15 @@ part 'cursor_attr.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class CursorAttr {
|
||||
@JsonKey(name: 'is_last_watched_arc')
|
||||
bool? isLastWatchedArc;
|
||||
int? rank;
|
||||
@JsonKey(name: 'is_last_watched_arc')
|
||||
bool? isLastWatchedArc;
|
||||
int? rank;
|
||||
|
||||
CursorAttr({this.isLastWatchedArc, this.rank});
|
||||
CursorAttr({this.isLastWatchedArc, this.rank});
|
||||
|
||||
factory CursorAttr.fromJson(Map<String, dynamic> json) {
|
||||
return _$CursorAttrFromJson(json);
|
||||
}
|
||||
factory CursorAttr.fromJson(Map<String, dynamic> json) {
|
||||
return _$CursorAttrFromJson(json);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => _$CursorAttrToJson(this);
|
||||
Map<String, dynamic> toJson() => _$CursorAttrToJson(this);
|
||||
}
|
||||
|
||||
@@ -4,14 +4,14 @@ part 'episodic_button.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class EpisodicButton {
|
||||
String? text;
|
||||
String? uri;
|
||||
String? text;
|
||||
String? uri;
|
||||
|
||||
EpisodicButton({this.text, this.uri});
|
||||
EpisodicButton({this.text, this.uri});
|
||||
|
||||
factory EpisodicButton.fromJson(Map<String, dynamic> json) {
|
||||
return _$EpisodicButtonFromJson(json);
|
||||
}
|
||||
factory EpisodicButton.fromJson(Map<String, dynamic> json) {
|
||||
return _$EpisodicButtonFromJson(json);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => _$EpisodicButtonToJson(this);
|
||||
Map<String, dynamic> toJson() => _$EpisodicButtonToJson(this);
|
||||
}
|
||||
|
||||
@@ -4,21 +4,21 @@ part 'last_watched_locator.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class LastWatchedLocator {
|
||||
@JsonKey(name: 'display_threshold')
|
||||
int? displayThreshold;
|
||||
@JsonKey(name: 'insert_ranking')
|
||||
int? insertRanking;
|
||||
String? text;
|
||||
@JsonKey(name: 'display_threshold')
|
||||
int? displayThreshold;
|
||||
@JsonKey(name: 'insert_ranking')
|
||||
int? insertRanking;
|
||||
String? text;
|
||||
|
||||
LastWatchedLocator({
|
||||
this.displayThreshold,
|
||||
this.insertRanking,
|
||||
this.text,
|
||||
});
|
||||
LastWatchedLocator({
|
||||
this.displayThreshold,
|
||||
this.insertRanking,
|
||||
this.text,
|
||||
});
|
||||
|
||||
factory LastWatchedLocator.fromJson(Map<String, dynamic> json) {
|
||||
return _$LastWatchedLocatorFromJson(json);
|
||||
}
|
||||
factory LastWatchedLocator.fromJson(Map<String, dynamic> json) {
|
||||
return _$LastWatchedLocatorFromJson(json);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => _$LastWatchedLocatorToJson(this);
|
||||
Map<String, dynamic> toJson() => _$LastWatchedLocatorToJson(this);
|
||||
}
|
||||
|
||||
@@ -4,12 +4,12 @@ part 'order.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class Order {
|
||||
String? title;
|
||||
String? value;
|
||||
String? title;
|
||||
String? value;
|
||||
|
||||
Order({this.title, this.value});
|
||||
Order({this.title, this.value});
|
||||
|
||||
factory Order.fromJson(Map<String, dynamic> json) => _$OrderFromJson(json);
|
||||
factory Order.fromJson(Map<String, dynamic> json) => _$OrderFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$OrderToJson(this);
|
||||
Map<String, dynamic> toJson() => _$OrderToJson(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user