NotificationException.fromMap constructor
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?,
);
}