toMap method Null safety

Map<String, dynamic> toMap()

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