toMap method

Map<String, dynamic> toMap()

toMap returns a map of the object.

Implementation

Map<String, dynamic> toMap() {
  return {
    'cpuInfo': cpuInfo.toMap(),
    'hosts': hosts.toMap(),
    'memoryInfo': memoryInfo.toMap(),
  };
}