toMap method

Map<String, Object?> toMap()

Implementation

Map<String, Object?> toMap() => <String, Object?>{
      'id': id,
      'name': name,
      'description': description,
      'groupId': groupId,
      'showBadge': showBadge,
      'importance': importance.value,
      'playSound': playSound,
      'enableVibration': enableVibration,
      'vibrationPattern': vibrationPattern,
      'enableLights': enableLights,
      'ledColorAlpha': ledColor?.alpha,
      'ledColorRed': ledColor?.red,
      'ledColorGreen': ledColor?.green,
      'ledColorBlue': ledColor?.blue,
      'channelAction':
          AndroidNotificationChannelAction.createIfNotExists.index,
    }..addAll(_convertNotificationSoundToMap(sound));