PerfEnvironment.fromJson constructor

PerfEnvironment.fromJson(
  1. Map json_
)

Implementation

PerfEnvironment.fromJson(core.Map json_)
    : this(
        cpuInfo: json_.containsKey('cpuInfo')
            ? CPUInfo.fromJson(
                json_['cpuInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        memoryInfo: json_.containsKey('memoryInfo')
            ? MemoryInfo.fromJson(
                json_['memoryInfo'] as core.Map<core.String, core.dynamic>)
            : null,
      );