toJson method

Map<String, dynamic> toJson()

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,
  };
}