mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
Refactor member page (#3)
* refactor: member page * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip
This commit is contained in:
35
lib/models/space/label.dart
Normal file
35
lib/models/space/label.dart
Normal file
@@ -0,0 +1,35 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'label.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class Label {
|
||||
String? path;
|
||||
String? text;
|
||||
@JsonKey(name: 'label_theme')
|
||||
String? labelTheme;
|
||||
@JsonKey(name: 'text_color')
|
||||
String? textColor;
|
||||
@JsonKey(name: 'bg_style')
|
||||
int? bgStyle;
|
||||
@JsonKey(name: 'bg_color')
|
||||
String? bgColor;
|
||||
@JsonKey(name: 'border_color')
|
||||
String? borderColor;
|
||||
String? image;
|
||||
|
||||
Label({
|
||||
this.path,
|
||||
this.text,
|
||||
this.labelTheme,
|
||||
this.textColor,
|
||||
this.bgStyle,
|
||||
this.bgColor,
|
||||
this.borderColor,
|
||||
this.image,
|
||||
});
|
||||
|
||||
factory Label.fromJson(Map<String, dynamic> json) => _$LabelFromJson(json);
|
||||
|
||||
Map<String, dynamic> toJson() => _$LabelToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user