toMap returns a map of the object.
Map<String, dynamic> toMap() { return { 'cpuInfo': cpuInfo.toMap(), 'hosts': hosts.toMap(), 'memoryInfo': memoryInfo.toMap(), }; }