Class MappingUtils
- java.lang.Object
-
- io.jenkins.plugins.kobiton.shared.utils.MappingUtils
-
public final class MappingUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> T
mapResponseToObject(String response, Class<T> objectType, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Data binding the response string from API into a specific object type
-
-
-
Method Detail
-
mapResponseToObject
public static <T> T mapResponseToObject(String response, Class<T> objectType, com.fasterxml.jackson.databind.ObjectMapper objectMapper) throws IOException
Data binding the response string from API into a specific object type- Type Parameters:
T
- object type- Parameters:
response
- response stringobjectType
- object type- Returns:
- object
- Throws:
IOException
- IOException
-
-