toJson method

Map<String, dynamic> toJson()

Implementation

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