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,
// Temporary ignored for release 4.6.1 (remove in future versions)
// ignore: deprecated_member_use
'color': color?.value,
};
}