toMap method
Implementation
Map<String, Object?> toMap() => <String, Object?>{
'icon': icon,
'channelId': channelId,
'channelName': channelName,
'channelDescription': channelDescription,
'channelShowBadge': channelShowBadge,
'channelAction': channelAction.index,
'importance': importance.value,
'priority': priority.value,
'playSound': playSound,
'enableVibration': enableVibration,
'vibrationPattern': vibrationPattern,
'groupKey': groupKey,
'setAsGroupSummary': setAsGroupSummary,
'groupAlertBehavior': groupAlertBehavior.index,
'autoCancel': autoCancel,
'ongoing': ongoing,
'colorAlpha': color?.alpha,
'colorRed': color?.red,
'colorGreen': color?.green,
'colorBlue': color?.blue,
'onlyAlertOnce': onlyAlertOnce,
'showWhen': showWhen,
'when': when,
'usesChronometer': usesChronometer,
'chronometerCountDown': chronometerCountDown,
'showProgress': showProgress,
'maxProgress': maxProgress,
'progress': progress,
'indeterminate': indeterminate,
'enableLights': enableLights,
'ledColorAlpha': ledColor?.alpha,
'ledColorRed': ledColor?.red,
'ledColorGreen': ledColor?.green,
'ledColorBlue': ledColor?.blue,
'ledOnMs': ledOnMs,
'ledOffMs': ledOffMs,
'ticker': ticker,
'visibility': visibility?.index,
'timeoutAfter': timeoutAfter,
'category': category?.name,
'fullScreenIntent': fullScreenIntent,
'shortcutId': shortcutId,
'additionalFlags': additionalFlags,
'subText': subText,
'tag': tag,
'colorized': colorized,
'number': number,
'audioAttributesUsage': audioAttributesUsage.value,
}
..addAll(_convertActionsToMap(actions))
..addAll(_convertStyleInformationToMap())
..addAll(_convertNotificationSoundToMap(sound))
..addAll(_convertLargeIconToMap());