Class MappingUtils


  • public final class MappingUtils
    extends Object
    • 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 string
        objectType - object type
        Returns:
        object
        Throws:
        IOException - IOException