mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-25 20:00:13 +08:00
@@ -15,13 +15,9 @@ class Avatar extends Owner {
|
||||
}
|
||||
|
||||
class Pendant {
|
||||
int? pid;
|
||||
String? name;
|
||||
String? image;
|
||||
|
||||
Pendant.fromJson(Map<String, dynamic> json) {
|
||||
pid = json['pid'];
|
||||
name = json['name'];
|
||||
image = json['image'];
|
||||
}
|
||||
}
|
||||
@@ -39,35 +35,19 @@ class BaseOfficialVerify {
|
||||
class Vip {
|
||||
int? type;
|
||||
late int status;
|
||||
int? dueDate;
|
||||
Label? label;
|
||||
|
||||
Vip.fromJson(Map<String, dynamic> json) {
|
||||
type = json['type'] ?? json['vipType'];
|
||||
status = json['status'] ?? json['vipStatus'] ?? 0;
|
||||
dueDate = json['due_date'] ?? json['vipDueDate'];
|
||||
if (json['label'] != null) label = Label.fromJson(json['label']);
|
||||
}
|
||||
}
|
||||
|
||||
class Label {
|
||||
String? path;
|
||||
String? text;
|
||||
String? labelTheme;
|
||||
String? textColor;
|
||||
int? bgStyle;
|
||||
String? bgColor;
|
||||
String? borderColor;
|
||||
String? image;
|
||||
|
||||
Label.fromJson(Map<String, dynamic> json) {
|
||||
path = json['path'];
|
||||
text = json['text'];
|
||||
labelTheme = json['label_theme'];
|
||||
textColor = json['text_color'];
|
||||
bgStyle = json['bg_style'];
|
||||
bgColor = json['bg_color'];
|
||||
borderColor = json['border_color'];
|
||||
image = json['image'];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user