AndroidNotificationSettings.fromMap constructor

AndroidNotificationSettings.fromMap(
  1. Map map
)

Implementation

factory AndroidNotificationSettings.fromMap(Map<dynamic, dynamic> map) {
  return AndroidNotificationSettings(
    areNotificationsEnabled: map['areNotificationsEnabled'],
    importance: map['importance'],
    channelSettings: List<ChannelSettings>.from(
        map['channelSettings']?.map((x) => ChannelSettings.fromMap(x))),
  );
}