PrefetchBundleInbox.fromJson constructor

PrefetchBundleInbox.fromJson(
  1. Map<String, dynamic> j
)

Implementation

factory PrefetchBundleInbox.fromJson(Map<String, dynamic> j) => PrefetchBundleInbox(
      unreadCount: (j['unread_count'] ?? 0) as int,
      page: (j['page'] as List? ?? [])
          .map((e) => PrefetchBundleInboxEntry.fromJson(e as Map<String, dynamic>))
          .toList(),
      cursor: j['cursor'] as String?,
    );