if (jsonHttpRequest != null && !jsonHttpRequest.isEmpty()) {
try {
if (!jsonHttpRequest.contains("\"httpRequest\"")) {
HttpRequestDTO httpRequestDTO = objectMapper.readValue(jsonHttpRequest, HttpRequestDTO.class);
if (httpRequestDTO != null) {
httpRequest = httpRequestDTO.buildObject();
}
} else {
ExpectationDTO expectationDTO = objectMapper.readValue(jsonHttpRequest, ExpectationDTO.class);
if (expectationDTO != null) {
httpRequest = expectationDTO.buildObject().getHttpRequest();