DeviceMetadata constructor

DeviceMetadata({
  1. String? firmwareVersion,
  2. int? deviceStateVersion,
  3. bool? canShutdown,
  4. bool? hasWifi,
  5. bool? hasBluetooth,
  6. bool? hasEthernet,
  7. Config_DeviceConfig_Role? role,
  8. int? positionFlags,
  9. HardwareModel? hwModel,
  10. bool? hasRemoteHardware,
  11. bool? hasPKC,
  12. int? excludedModules,
})

Implementation

factory DeviceMetadata({
  $core.String? firmwareVersion,
  $core.int? deviceStateVersion,
  $core.bool? canShutdown,
  $core.bool? hasWifi,
  $core.bool? hasBluetooth,
  $core.bool? hasEthernet,
  $1.Config_DeviceConfig_Role? role,
  $core.int? positionFlags,
  HardwareModel? hwModel,
  $core.bool? hasRemoteHardware,
  $core.bool? hasPKC,
  $core.int? excludedModules,
}) {
  final result = create();
  if (firmwareVersion != null) result.firmwareVersion = firmwareVersion;
  if (deviceStateVersion != null)
    result.deviceStateVersion = deviceStateVersion;
  if (canShutdown != null) result.canShutdown = canShutdown;
  if (hasWifi != null) result.hasWifi = hasWifi;
  if (hasBluetooth != null) result.hasBluetooth = hasBluetooth;
  if (hasEthernet != null) result.hasEthernet = hasEthernet;
  if (role != null) result.role = role;
  if (positionFlags != null) result.positionFlags = positionFlags;
  if (hwModel != null) result.hwModel = hwModel;
  if (hasRemoteHardware != null) result.hasRemoteHardware = hasRemoteHardware;
  if (hasPKC != null) result.hasPKC = hasPKC;
  if (excludedModules != null) result.excludedModules = excludedModules;
  return result;
}