toMap method Null safety
Implementation
Map<String, dynamic> toMap() {
return <String, dynamic>{
'cpuCores': cpuCores,
'cpuAppUsage': cpuAppUsage,
'cpuTotalUsage': cpuTotalUsage,
'memoryUsage': memoryUsage,
'fullMemory': fullMemory,
'totalMemoryUsage': totalMemoryUsage,
'freeMemory': freeMemory,
'memoryRatio': memoryRatio,
'totalMemoryRatio': totalMemoryRatio,
};
}