mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-19 16:46:22 +08:00
19 lines
551 B
Dart
19 lines
551 B
Dart
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(),
|
|
);
|
|
}
|