mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
* refactor: member page * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip
38 lines
821 B
Dart
38 lines
821 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
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;
|
|
|
|
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);
|
|
|
|
Map<String, dynamic> toJson() => _$BadgeToJson(this);
|
|
}
|