NotificationChannelSettings.fromMap constructor
Creates channel settings from a map.
Implementation
factory NotificationChannelSettings.fromMap(Map<String, dynamic> map) {
return NotificationChannelSettings(
channelId: map.parseDefault<String>('channelId', ''),
channelName: map.parseDefault<String>('channelName', ''),
description: map.parse<String>('description'),
isEnabled: map.parseDefault<bool>('isEnabled', true),
allowSound: map.parseDefault<bool>('allowSound', true),
allowVibration: map.parseDefault<bool>('allowVibration', true),
allowLights: map.parseDefault<bool>('allowLights', true),
soundPath: map.parse<String>('soundPath'),
vibrationPattern: map.parse<List<int>>('vibrationPattern'),
);
}