toJson method
Implementation
Map<String, dynamic> toJson() => {
'type': 'exec',
'command': command,
'env': env,
if (timeoutMs != null) 'timeout_ms': timeoutMs,
if (user != null) 'user': user,
if (workingDirectory != null) 'working_directory': workingDirectory,
};