UnreadNotificationCounts.fromJson constructor

UnreadNotificationCounts.fromJson(
  1. Map<String, Object?> json
)

Implementation

UnreadNotificationCounts.fromJson(Map<String, Object?> json)
    : highlightCount = json.tryGet<int>('highlight_count'),
      notificationCount = json.tryGet<int>('notification_count');