AndroidNotification.fromMap constructor

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

Constructs an AndroidNotification from a raw Map.

Implementation

factory AndroidNotification.fromMap(Map<String, dynamic> map) {
  return AndroidNotification(
    channelId: map['channelId'],
    clickAction: map['clickAction'],
    color: map['color'],
    count: map['count'],
    imageUrl: map['imageUrl'],
    link: map['link'],
    priority: convertToAndroidNotificationPriority(map['priority']),
    smallIcon: map['smallIcon'],
    sound: map['sound'],
    ticker: map['ticker'],
    tag: map['tag'],
    visibility: convertToAndroidNotificationVisibility(map['visibility']),
  );
}