fromMap method

  1. @override
ReceivedNotification fromMap(
  1. Map<String, dynamic> mapData
)

Exports all content into a serializable object

Implementation

@override
ReceivedNotification fromMap(Map<String, dynamic> mapData) {
  super.fromMap(mapData);

  createdDate = LocalAssertUtils.extractValue(
      NOTIFICATION_CREATED_DATE, mapData, DateTime);

  displayedDate = LocalAssertUtils.extractValue(
      NOTIFICATION_DISPLAYED_DATE, mapData, DateTime);

  createdSource = LocalAssertUtils.extractEnum<NotificationSource>(
      NOTIFICATION_CREATED_SOURCE, mapData, NotificationSource.values);

  createdLifeCycle = LocalAssertUtils.extractEnum<NotificationLifeCycle>(
      NOTIFICATION_CREATED_LIFECYCLE, mapData, NotificationLifeCycle.values);

  displayedLifeCycle = LocalAssertUtils.extractEnum<NotificationLifeCycle>(
      NOTIFICATION_DISPLAYED_LIFECYCLE,
      mapData,
      NotificationLifeCycle.values);

  return this;
}