()
| 45 | } |
| 46 | |
| 47 | @Override |
| 48 | public JsonObject getHttpBody() { |
| 49 | JsonObject requestObject = new JsonObject(); |
| 50 | requestObject.addProperty(ApiKeywords.MODEL, getModel()); |
| 51 | requestObject.add(ApiKeywords.INPUT, getInput()); |
| 52 | Map<String, Object> params = getParameters(); |
| 53 | if (params != null && !params.isEmpty()) { |
| 54 | requestObject.add(ApiKeywords.PARAMETERS, JsonUtils.parametersToJsonObject(params)); |
| 55 | } |
| 56 | return requestObject; |
| 57 | } |
| 58 | |
| 59 | @Override |
| 60 | public void validate() throws InputRequiredException {} |
no test coverage detected