toMap method

Map<String, dynamic> toMap()

Convert AndroidNotificationConfiguration to dictionary form

Implementation

Map<String, dynamic> toMap() {
  return {
    'appActivityClass': appActivityClass,
    'callActivityClass': callActivityClass,
    'defaultIconName': defaultIconName,
    'missedCallIconName': missedCallIconName,
    'defaultContactIconName': defaultContactIconName,
    'enableRingtone': enableRingtone,
  }..removeWhere((key, value) => value == null);
}