mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-24 11:06:51 +08:00
32
lib/models_new/space/space_archive/badge.dart
Normal file
32
lib/models_new/space/space_archive/badge.dart
Normal file
@@ -0,0 +1,32 @@
|
||||
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?,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user