Config constructor

Implementation

factory Config({
  Config_DeviceConfig? device,
  Config_PositionConfig? position,
  Config_PowerConfig? power,
  Config_NetworkConfig? network,
  Config_DisplayConfig? display,
  Config_LoRaConfig? lora,
  Config_BluetoothConfig? bluetooth,
  Config_SecurityConfig? security,
  Config_SessionkeyConfig? sessionkey,
  $0.DeviceUIConfig? deviceUi,
}) {
  final result = create();
  if (device != null) result.device = device;
  if (position != null) result.position = position;
  if (power != null) result.power = power;
  if (network != null) result.network = network;
  if (display != null) result.display = display;
  if (lora != null) result.lora = lora;
  if (bluetooth != null) result.bluetooth = bluetooth;
  if (security != null) result.security = security;
  if (sessionkey != null) result.sessionkey = sessionkey;
  if (deviceUi != null) result.deviceUi = deviceUi;
  return result;
}