toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (cpuAveragePercent != null) 'cpuAveragePercent': cpuAveragePercent!,
      if (cpuMaxPercent != null) 'cpuMaxPercent': cpuMaxPercent!,
      if (diskIoRateAverageKbps != null)
        'diskIoRateAverageKbps': diskIoRateAverageKbps!,
      if (diskIoRateMaxKbps != null) 'diskIoRateMaxKbps': diskIoRateMaxKbps!,
      if (memoryAveragePercent != null)
        'memoryAveragePercent': memoryAveragePercent!,
      if (memoryMaxPercent != null) 'memoryMaxPercent': memoryMaxPercent!,
      if (networkThroughputAverageKbps != null)
        'networkThroughputAverageKbps': networkThroughputAverageKbps!,
      if (networkThroughputMaxKbps != null)
        'networkThroughputMaxKbps': networkThroughputMaxKbps!,
    };