Notification.fromJson constructor

Notification.fromJson(
  1. Map json
)

Initialize a newly created instance based on the given JSON data.

Implementation

factory Notification.fromJson(Map json) {
  return Notification(json[Notification.EVENT],
      json[Notification.PARAMS] as Map<String, Object?>);
}