fromMap static method

NotificationEvent fromMap(
  1. Map data
)

Converts map to object.

Implementation

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

  return notificationEvent;
}