Files
PiliPlus/lib/models/pgc/pgc_rank/badge_info.dart
bggRGjQaUbCoE fd55383778 opt handle res
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-05-25 11:45:20 +08:00

20 lines
499 B
Dart

class BadgeInfo {
String? bgColor;
String? bgColorNight;
String? text;
BadgeInfo({this.bgColor, this.bgColorNight, this.text});
factory BadgeInfo.fromJson(Map<String, dynamic> json) => BadgeInfo(
bgColor: json['bg_color'] as String?,
bgColorNight: json['bg_color_night'] as String?,
text: json['text'] as String?,
);
Map<String, dynamic> toJson() => {
'bg_color': bgColor,
'bg_color_night': bgColorNight,
'text': text,
};
}