Notification.fromJson constructor

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

Parse from a json

Implementation

factory Notification.fromJson(Map<String, dynamic> json) => Notification(
  id: json['id'],
  date: json['date'],
  isSilent: json['is_silent'],
  type: NotificationType.fromJson(json['type']),
);