mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-07 10:37:51 +08:00
refa: article (#757)
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
19
lib/models/dynamics/article_view/label.dart
Normal file
19
lib/models/dynamics/article_view/label.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
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,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user