toJson method

Map<String, dynamic> toJson()

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,
    };