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? items; MsgAtData({this.cursor, this.items}); factory MsgAtData.fromJson(Map json) => MsgAtData( cursor: json['cursor'] == null ? null : Cursor.fromJson(json['cursor'] as Map), items: (json['items'] as List?) ?.map((e) => MsgAtItem.fromJson(e as Map)) .toList(), ); }