mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-22 10:06:23 +08:00
@@ -9,12 +9,12 @@ class MsgReplyData {
|
||||
MsgReplyData({this.cursor, this.items, this.lastViewAt});
|
||||
|
||||
factory MsgReplyData.fromJson(Map<String, dynamic> json) => MsgReplyData(
|
||||
cursor: json['cursor'] == null
|
||||
? null
|
||||
: Cursor.fromJson(json['cursor'] as Map<String, dynamic>),
|
||||
items: (json['items'] as List<dynamic>?)
|
||||
?.map((e) => MsgReplyItem.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
lastViewAt: json['last_view_at'] as int?,
|
||||
);
|
||||
cursor: json['cursor'] == null
|
||||
? null
|
||||
: Cursor.fromJson(json['cursor'] as Map<String, dynamic>),
|
||||
items: (json['items'] as List<dynamic>?)
|
||||
?.map((e) => MsgReplyItem.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
lastViewAt: json['last_view_at'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user