core.Map<core.String, core.dynamic> toJson() => { if (cpuInfo != null) 'cpuInfo': cpuInfo!.toJson(), if (memoryInfo != null) 'memoryInfo': memoryInfo!.toJson(), };