fromMap static method

NotificationEvent fromMap(
  1. Map data
)

Implementation

static NotificationEvent fromMap(Map data) {
  NotificationEvent notificationEvent = NotificationEvent();
  notificationEvent.id = data['id'] ?? '';
  notificationEvent.description = data['description'] ?? '';
  notificationEvent.title = data["title"] ?? '';

  return notificationEvent;
}