InAppEvent.fromMap constructor

InAppEvent.fromMap(
  1. EventType type,
  2. Map<String?, dynamic> map
)

Constructor for creating an InAppEvent from a map.

type - The type of event. map - The map containing the values for creating the InAppEvent.

Implementation

InAppEvent.fromMap(EventType type, Map<String?, dynamic> map)
    : eventType = type,
      actionValue = map['actionValue'],
      actionName = map['actionName'],
      message = InAppMessage(
          messageId: map['messageId'], deliveryId: map['deliveryId']);