VmUtilizationMetrics.fromJson constructor

VmUtilizationMetrics.fromJson(
  1. Map json_
)

Implementation

VmUtilizationMetrics.fromJson(core.Map json_)
    : this(
        cpuAveragePercent: json_.containsKey('cpuAveragePercent')
            ? json_['cpuAveragePercent'] as core.int
            : null,
        cpuMaxPercent: json_.containsKey('cpuMaxPercent')
            ? json_['cpuMaxPercent'] as core.int
            : null,
        diskIoRateAverageKbps: json_.containsKey('diskIoRateAverageKbps')
            ? json_['diskIoRateAverageKbps'] as core.String
            : null,
        diskIoRateMaxKbps: json_.containsKey('diskIoRateMaxKbps')
            ? json_['diskIoRateMaxKbps'] as core.String
            : null,
        memoryAveragePercent: json_.containsKey('memoryAveragePercent')
            ? json_['memoryAveragePercent'] as core.int
            : null,
        memoryMaxPercent: json_.containsKey('memoryMaxPercent')
            ? json_['memoryMaxPercent'] as core.int
            : null,
        networkThroughputAverageKbps:
            json_.containsKey('networkThroughputAverageKbps')
                ? json_['networkThroughputAverageKbps'] as core.String
                : null,
        networkThroughputMaxKbps:
            json_.containsKey('networkThroughputMaxKbps')
                ? json_['networkThroughputMaxKbps'] as core.String
                : null,
      );