mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-20 00:56:31 +08:00
refa: live page
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
20
lib/models/live/live_feed_index/calendar_button.dart
Normal file
20
lib/models/live/live_feed_index/calendar_button.dart
Normal file
@@ -0,0 +1,20 @@
|
||||
class CalendarButton {
|
||||
String? text;
|
||||
String? link;
|
||||
|
||||
CalendarButton({this.text, this.link});
|
||||
|
||||
factory CalendarButton.fromJson(Map<String, dynamic> json) {
|
||||
return CalendarButton(
|
||||
text: json['text'] as String?,
|
||||
link: json['link'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'text': text,
|
||||
'link': link,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user