toJson method Null safety
The current instance as a Map.
Implementation
Map<String, Object?> toJson() {
return {
'screenToken': screenToken,
'batteryPercentage': batteryPercentage,
'lowBatteryThreshold': lowBatteryThreshold,
'lowBatteryNotificationDelay': lowBatteryNotificationDelay,
'batteryReportingDelay': batteryReportingDelay,
'isOnline': isOnline,
};
}