mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
update msg api (#375)
This commit is contained in:
committed by
GitHub
parent
432c5133e6
commit
d5a244ce7f
@@ -1,27 +1,3 @@
|
||||
class MsgFeedSysMsg {
|
||||
List<SystemNotifyList>? systemNotifyList;
|
||||
|
||||
MsgFeedSysMsg({this.systemNotifyList});
|
||||
|
||||
MsgFeedSysMsg.fromJson(Map<String, dynamic> json) {
|
||||
if (json['system_notify_list'] != null) {
|
||||
systemNotifyList = <SystemNotifyList>[];
|
||||
json['system_notify_list'].forEach((v) {
|
||||
systemNotifyList!.add(SystemNotifyList.fromJson(v));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = <String, dynamic>{};
|
||||
if (systemNotifyList != null) {
|
||||
data['system_notify_list'] =
|
||||
systemNotifyList!.map((v) => v.toJson()).toList();
|
||||
}
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
class SystemNotifyList {
|
||||
int? id;
|
||||
int? cursor;
|
||||
|
||||
Reference in New Issue
Block a user