NotificationException.fromMap constructor

NotificationException.fromMap(
  1. Map<String, dynamic> map
)

Creates a NotificationException from a Map received via the platform channel.

Implementation

factory NotificationException.fromMap(Map<String, dynamic> map) {
  return NotificationException(
    map['result'] != null
        ? NotificationResults.fromValue(map['result'] as String)
        : NotificationResults.undefined,
    map['message'] as String?,
  );
}