Notification.fromJson constructor

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

Implementation

Notification.fromJson(Map<String, dynamic>? json) {
  if (json == null) return;
  title = json['title'] as String?;
  subtitle = json['subtitle'] as String?;
  body = json['body'] as String?;
  imageUrl = extractUri(json['imageUrl']);
}