PNNotificationInteraction constructor
PNNotificationInteraction(
- Map<String, dynamic> input
)
Implementation
PNNotificationInteraction(Map<String, dynamic> input) {
try {
type = PNNotificationClickType.fromValue(input['type']);
actionIdentifier = input['actionIdentifier'];
notification =
PNNotification.create(input['notification'].cast<String, dynamic>());
action = input['action'] != null
? PNNotificationAction(input['action'])
: null;
} catch (e) {
dt.log("Error processing PNNotificationInteraction ${e.toString()}");
}
}