Config_DeviceConfig constructor

Config_DeviceConfig({
  1. Config_DeviceConfig_Role? role,
  2. @Deprecated('This field is deprecated.') bool? serialEnabled,
  3. int? buttonGpio,
  4. int? buzzerGpio,
  5. Config_DeviceConfig_RebroadcastMode? rebroadcastMode,
  6. int? nodeInfoBroadcastSecs,
  7. bool? doubleTapAsButtonPress,
  8. @Deprecated('This field is deprecated.') bool? isManaged,
  9. bool? disableTripleClick,
  10. String? tzdef,
  11. bool? ledHeartbeatDisabled,
  12. Config_DeviceConfig_BuzzerMode? buzzerMode,
})

Implementation

factory Config_DeviceConfig({
  Config_DeviceConfig_Role? role,
  @$core.Deprecated('This field is deprecated.') $core.bool? serialEnabled,
  $core.int? buttonGpio,
  $core.int? buzzerGpio,
  Config_DeviceConfig_RebroadcastMode? rebroadcastMode,
  $core.int? nodeInfoBroadcastSecs,
  $core.bool? doubleTapAsButtonPress,
  @$core.Deprecated('This field is deprecated.') $core.bool? isManaged,
  $core.bool? disableTripleClick,
  $core.String? tzdef,
  $core.bool? ledHeartbeatDisabled,
  Config_DeviceConfig_BuzzerMode? buzzerMode,
}) {
  final result = create();
  if (role != null) result.role = role;
  if (serialEnabled != null) result.serialEnabled = serialEnabled;
  if (buttonGpio != null) result.buttonGpio = buttonGpio;
  if (buzzerGpio != null) result.buzzerGpio = buzzerGpio;
  if (rebroadcastMode != null) result.rebroadcastMode = rebroadcastMode;
  if (nodeInfoBroadcastSecs != null)
    result.nodeInfoBroadcastSecs = nodeInfoBroadcastSecs;
  if (doubleTapAsButtonPress != null)
    result.doubleTapAsButtonPress = doubleTapAsButtonPress;
  if (isManaged != null) result.isManaged = isManaged;
  if (disableTripleClick != null)
    result.disableTripleClick = disableTripleClick;
  if (tzdef != null) result.tzdef = tzdef;
  if (ledHeartbeatDisabled != null)
    result.ledHeartbeatDisabled = ledHeartbeatDisabled;
  if (buzzerMode != null) result.buzzerMode = buzzerMode;
  return result;
}