mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-19 00:26:18 +08:00
21 lines
342 B
Dart
21 lines
342 B
Dart
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,
|
|
};
|
|
}
|