InboxNotificationPageData.fromJson constructor

InboxNotificationPageData.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory InboxNotificationPageData.fromJson(Map<String, dynamic> json) {
  final items = (json['items'] as List<dynamic>? ?? [])
      .map((e) => InboxNotificationData.fromJson(Map<String, dynamic>.from(e as Map)))
      .toList();
  return InboxNotificationPageData(
    items: items,
    nextCursor: json['nextCursor'],
    hasMore: json['hasMore'] ?? false,
  );
}