toMap method

Map<String, dynamic> toMap()

Convert AndroidNotificationConfiguration to dictionary form

Implementation

Map<String, dynamic> toMap() {
  return {
    'iconTemplateImageResource': iconTemplateImageResource,
    'ringtoneSound': ringtoneSound,
    'includeInRecents': includeInRecents,
    'notifyInForeground': notifyInForeground,
    'dtmfEnabled': dtmfEnabled,
  }..removeWhere((key, value) => value == null);
}