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,
      );