Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-10-25 12:21:16 +08:00
parent b43840b636
commit e9dc154642
13 changed files with 423 additions and 408 deletions

View File

@@ -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'];
}
}