toJson method

Map<String, dynamic> toJson()

Returns a JSON representation of this class.

Implementation

Map<String, dynamic> toJson() {
  return {
    'notificationTitle': notificationTitle,
    'notificationText': notificationText,
    'notificationIcon': notificationIcon.toJson(),
    'enableWifiLock': enableWifiLock,
    'enableWakeLock': enableWakeLock,
  };
}