DeviceMetrics constructor

DeviceMetrics({
  1. int? batteryLevel,
  2. double? voltage,
  3. double? channelUtilization,
  4. double? airUtilTx,
  5. int? uptimeSeconds,
})

Implementation

factory DeviceMetrics({
  $core.int? batteryLevel,
  $core.double? voltage,
  $core.double? channelUtilization,
  $core.double? airUtilTx,
  $core.int? uptimeSeconds,
}) {
  final result = create();
  if (batteryLevel != null) result.batteryLevel = batteryLevel;
  if (voltage != null) result.voltage = voltage;
  if (channelUtilization != null)
    result.channelUtilization = channelUtilization;
  if (airUtilTx != null) result.airUtilTx = airUtilTx;
  if (uptimeSeconds != null) result.uptimeSeconds = uptimeSeconds;
  return result;
}