Map<String, Object?> toJson() => { if (processId != null) 'processId': processId, if (shellProcessId != null) 'shellProcessId': shellProcessId, };