Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-17 18:08:55 +08:00
parent 906c21e252
commit 1d4eabb770
58 changed files with 875 additions and 684 deletions

View File

@@ -4,34 +4,34 @@ part 'badge.g.dart';
@JsonSerializable()
class Badge {
String? text;
@JsonKey(name: 'text_color')
String? textColor;
@JsonKey(name: 'text_color_night')
String? textColorNight;
@JsonKey(name: 'bg_color')
String? bgColor;
@JsonKey(name: 'bg_color_night')
String? bgColorNight;
@JsonKey(name: 'border_color')
String? borderColor;
@JsonKey(name: 'border_color_night')
String? borderColorNight;
@JsonKey(name: 'bg_style')
int? bgStyle;
String? text;
@JsonKey(name: 'text_color')
String? textColor;
@JsonKey(name: 'text_color_night')
String? textColorNight;
@JsonKey(name: 'bg_color')
String? bgColor;
@JsonKey(name: 'bg_color_night')
String? bgColorNight;
@JsonKey(name: 'border_color')
String? borderColor;
@JsonKey(name: 'border_color_night')
String? borderColorNight;
@JsonKey(name: 'bg_style')
int? bgStyle;
Badge({
this.text,
this.textColor,
this.textColorNight,
this.bgColor,
this.bgColorNight,
this.borderColor,
this.borderColorNight,
this.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) => _$BadgeFromJson(json);
factory Badge.fromJson(Map<String, dynamic> json) => _$BadgeFromJson(json);
Map<String, dynamic> toJson() => _$BadgeToJson(this);
Map<String, dynamic> toJson() => _$BadgeToJson(this);
}