toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (cpu != null) 'cpu': cpu!,
if (disk != null) 'disk': disk!,
if (memory != null) 'memory': memory!,
if (network != null) 'network': network!,
if (sampleTime != null) 'sampleTime': sampleTime!,
};