PerformanceSample.fromJson constructor

PerformanceSample.fromJson(
  1. Map json_
)

Implementation

PerformanceSample.fromJson(core.Map json_)
    : this(
        cpu: json_.containsKey('cpu')
            ? CpuUsageSample.fromJson(
                json_['cpu'] as core.Map<core.String, core.dynamic>)
            : null,
        disk: json_.containsKey('disk')
            ? DiskUsageSample.fromJson(
                json_['disk'] as core.Map<core.String, core.dynamic>)
            : null,
        memory: json_.containsKey('memory')
            ? MemoryUsageSample.fromJson(
                json_['memory'] as core.Map<core.String, core.dynamic>)
            : null,
        network: json_.containsKey('network')
            ? NetworkUsageSample.fromJson(
                json_['network'] as core.Map<core.String, core.dynamic>)
            : null,
        sampleTime: json_.containsKey('sampleTime')
            ? json_['sampleTime'] as core.String
            : null,
      );