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