toMap method
Implementation
Map<String, Object> toMap() => <String, Object>{
'requestAlertPermission': requestAlertPermission,
'requestSoundPermission': requestSoundPermission,
'requestBadgePermission': requestBadgePermission,
'requestCriticalPermission': requestCriticalPermission,
'defaultPresentAlert': defaultPresentAlert,
'defaultPresentSound': defaultPresentSound,
'defaultPresentBadge': defaultPresentBadge,
'notificationCategories': notificationCategories
.map((e) => e.toMap()) // ignore: always_specify_types
.toList(),
};