clean up models

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-04-05 12:10:18 +08:00
parent b897103af0
commit 279f21857d
308 changed files with 156 additions and 6243 deletions

View File

@@ -1,32 +1,11 @@
class Badge {
String? text;
String? textColor;
String? textColorNight;
String? bgColor;
String? bgColorNight;
String? borderColor;
String? borderColorNight;
int? 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) => 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?,
);
}