mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-25 19:46:47 +08:00
18
lib/models_new/msg/msg_at/data.dart
Normal file
18
lib/models_new/msg/msg_at/data.dart
Normal file
@@ -0,0 +1,18 @@
|
||||
import 'package:PiliPlus/models_new/msg/msg_at/cursor.dart';
|
||||
import 'package:PiliPlus/models_new/msg/msg_at/item.dart';
|
||||
|
||||
class MsgAtData {
|
||||
Cursor? cursor;
|
||||
List<MsgAtItem>? items;
|
||||
|
||||
MsgAtData({this.cursor, this.items});
|
||||
|
||||
factory MsgAtData.fromJson(Map<String, dynamic> json) => MsgAtData(
|
||||
cursor: json['cursor'] == null
|
||||
? null
|
||||
: Cursor.fromJson(json['cursor'] as Map<String, dynamic>),
|
||||
items: (json['items'] as List<dynamic>?)
|
||||
?.map((e) => MsgAtItem.fromJson(e as Map<String, dynamic>))
|
||||
.toList(),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user