mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
@@ -10,13 +10,13 @@ class MsgAtItem {
|
||||
MsgAtItem({this.id, this.user, this.item, this.atTime});
|
||||
|
||||
factory MsgAtItem.fromJson(Map<String, dynamic> json) => MsgAtItem(
|
||||
id: json['id'] as int?,
|
||||
user: json['user'] == null
|
||||
? null
|
||||
: User.fromJson(json['user'] as Map<String, dynamic>),
|
||||
item: json['item'] == null
|
||||
? null
|
||||
: MsgAtContent.fromJson(json['item'] as Map<String, dynamic>),
|
||||
atTime: json['at_time'] as int?,
|
||||
);
|
||||
id: json['id'] as int?,
|
||||
user: json['user'] == null
|
||||
? null
|
||||
: User.fromJson(json['user'] as Map<String, dynamic>),
|
||||
item: json['item'] == null
|
||||
? null
|
||||
: MsgAtContent.fromJson(json['item'] as Map<String, dynamic>),
|
||||
atTime: json['at_time'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user