mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
22
lib/models_new/msg/msg_at/item.dart
Normal file
22
lib/models_new/msg/msg_at/item.dart
Normal file
@@ -0,0 +1,22 @@
|
||||
import 'package:PiliPlus/models_new/msg/msg_at/content.dart';
|
||||
import 'package:PiliPlus/models_new/msg/msg_at/user.dart';
|
||||
|
||||
class MsgAtItem {
|
||||
int? id;
|
||||
User? user;
|
||||
MsgAtContent? item;
|
||||
int? atTime;
|
||||
|
||||
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?,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user