ModuleConfig_DetectionSensorConfig constructor

ModuleConfig_DetectionSensorConfig({
  1. bool? enabled,
  2. int? minimumBroadcastSecs,
  3. int? stateBroadcastSecs,
  4. bool? sendBell,
  5. String? name,
  6. int? monitorPin,
  7. ModuleConfig_DetectionSensorConfig_TriggerType? detectionTriggerType,
  8. bool? usePullup,
})

Implementation

factory ModuleConfig_DetectionSensorConfig({
  $core.bool? enabled,
  $core.int? minimumBroadcastSecs,
  $core.int? stateBroadcastSecs,
  $core.bool? sendBell,
  $core.String? name,
  $core.int? monitorPin,
  ModuleConfig_DetectionSensorConfig_TriggerType? detectionTriggerType,
  $core.bool? usePullup,
}) {
  final result = create();
  if (enabled != null) result.enabled = enabled;
  if (minimumBroadcastSecs != null)
    result.minimumBroadcastSecs = minimumBroadcastSecs;
  if (stateBroadcastSecs != null)
    result.stateBroadcastSecs = stateBroadcastSecs;
  if (sendBell != null) result.sendBell = sendBell;
  if (name != null) result.name = name;
  if (monitorPin != null) result.monitorPin = monitorPin;
  if (detectionTriggerType != null)
    result.detectionTriggerType = detectionTriggerType;
  if (usePullup != null) result.usePullup = usePullup;
  return result;
}