CPUInfo.fromMap constructor
Implementation
factory CPUInfo.fromMap(Map<String, String> map) {
return CPUInfo(
usedCpuSys: double.parse(map['used_cpu_sys'] ?? '0'),
usedCpuUser: double.parse(map['used_cpu_user'] ?? '0'),
usedCpuSysChildren: double.parse(map['used_cpu_sys_children'] ?? '0'),
usedCpuUserChildren: double.parse(map['used_cpu_user_children'] ?? '0'),
);
}