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