toJson method
Implementation
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
if (cpu != null) {
_json[r'cpu'] = cpu;
}
if (memory != null) {
_json[r'memory'] = memory;
}
if (startedAt != null) {
_json[r'startedAt'] = startedAt;
}
if (pid != null) {
_json[r'pid'] = pid;
}
return _json;
}