toJson method
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(),
};
}