LocalStats constructor

LocalStats({
  1. int? uptimeSeconds,
  2. double? channelUtilization,
  3. double? airUtilTx,
  4. int? numPacketsTx,
  5. int? numPacketsRx,
  6. int? numPacketsRxBad,
  7. int? numOnlineNodes,
  8. int? numTotalNodes,
  9. int? numRxDupe,
  10. int? numTxRelay,
  11. int? numTxRelayCanceled,
  12. int? heapTotalBytes,
  13. int? heapFreeBytes,
})

Implementation

factory LocalStats({
  $core.int? uptimeSeconds,
  $core.double? channelUtilization,
  $core.double? airUtilTx,
  $core.int? numPacketsTx,
  $core.int? numPacketsRx,
  $core.int? numPacketsRxBad,
  $core.int? numOnlineNodes,
  $core.int? numTotalNodes,
  $core.int? numRxDupe,
  $core.int? numTxRelay,
  $core.int? numTxRelayCanceled,
  $core.int? heapTotalBytes,
  $core.int? heapFreeBytes,
}) {
  final result = create();
  if (uptimeSeconds != null) result.uptimeSeconds = uptimeSeconds;
  if (channelUtilization != null)
    result.channelUtilization = channelUtilization;
  if (airUtilTx != null) result.airUtilTx = airUtilTx;
  if (numPacketsTx != null) result.numPacketsTx = numPacketsTx;
  if (numPacketsRx != null) result.numPacketsRx = numPacketsRx;
  if (numPacketsRxBad != null) result.numPacketsRxBad = numPacketsRxBad;
  if (numOnlineNodes != null) result.numOnlineNodes = numOnlineNodes;
  if (numTotalNodes != null) result.numTotalNodes = numTotalNodes;
  if (numRxDupe != null) result.numRxDupe = numRxDupe;
  if (numTxRelay != null) result.numTxRelay = numTxRelay;
  if (numTxRelayCanceled != null)
    result.numTxRelayCanceled = numTxRelayCanceled;
  if (heapTotalBytes != null) result.heapTotalBytes = heapTotalBytes;
  if (heapFreeBytes != null) result.heapFreeBytes = heapFreeBytes;
  return result;
}