toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (chargingStateConstraint != null)
'chargingStateConstraint': chargingStateConstraint!,
if (deviceIdleStateConstraint != null)
'deviceIdleStateConstraint': deviceIdleStateConstraint!,
if (networkTypeConstraint != null)
'networkTypeConstraint': networkTypeConstraint!,
};