mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
20 lines
413 B
Dart
20 lines
413 B
Dart
class Label {
|
|
String? path;
|
|
String? text;
|
|
String? labelTheme;
|
|
|
|
Label({this.path, this.text, this.labelTheme});
|
|
|
|
factory Label.fromJson(Map<String, dynamic> json) => Label(
|
|
path: json['path'] as String?,
|
|
text: json['text'] as String?,
|
|
labelTheme: json['label_theme'] as String?,
|
|
);
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
'path': path,
|
|
'text': text,
|
|
'label_theme': labelTheme,
|
|
};
|
|
}
|