toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': id,
    'channelId': channelId,
    'channelName': channelName,
    'channelDescription': channelDescription,
    'enableVibration': enableVibration,
    'notificationTitle': notificationTitle,
    'notificationText': notificationText,
    'playSound': playSound,
    'showWhen': showWhen,
    'iconData': iconData?.toJson(),
  };
}