toJson method
Returns a JSON representation of this class.
Implementation
Map<String, dynamic> toJson() {
return {
'enableWakeLock': enableWakeLock,
'enableWifiLock': enableWifiLock,
'notificationTitle': notificationTitle,
'notificationIcon': notificationIcon.toJson(),
'notificationText': notificationText,
'notificationChannelName': notificationChannelName,
'setOngoing': setOngoing,
'color': color?.value,
};
}