* @since 3.0.0
*/
final class WsDebuggingParametersBuilder {
public static DebuggingParameters build(org.jitterbit.integration.debug.client.DebuggingParameters params) {
DebuggingParameters wsParams = new DebuggingParameters();
wsParams.setDebuggingSessionId(params.getSessionId().toString());
wsParams.setCommand(params.getCommand());
wsParams.setObserveBreakpoints(params.isObservingBreakpoints());
wsParams.setBreakOnError(params.isBreakingOnErrors());
wsParams.setBreakOnWarning(params.isBreakingOnWarnings());
WsDataElement[] wsDataElements = buildDataElements(params);
wsParams.setGlobalVariables(wsDataElements);
Breakpoint[] wsBreakpoints = buildBreakpoints(params);
wsParams.setBreakpoints(wsBreakpoints);
return wsParams;
}