toMap method
Serializes to a map for passing to the platform.
Implementation
Map<String, dynamic> toMap() => {
'network': network?.name,
'batteryNotLow': batteryNotLow,
'requiresCharging': requiresCharging,
'deviceIdle': deviceIdle,
};