toMap method
Implementation
Map<String, Object?> toMap() => <String, Object?>{
'presentAlert': presentAlert,
'presentSound': presentSound,
'presentBadge': presentBadge,
'subtitle': subtitle,
'sound': sound,
'badgeNumber': badgeNumber,
'threadIdentifier': threadIdentifier,
'interruptionLevel': interruptionLevel?.value,
'attachments': attachments
?.map((a) => a.toMap()) // ignore: always_specify_types
.toList(),
'categoryIdentifier': categoryIdentifier,
};