Class NotificationStoreUtils


  • public class NotificationStoreUtils
    extends Object
    NotificationStoreUtils
    • Method Detail

      • getMapper

        public static com.fasterxml.jackson.databind.ObjectMapper getMapper()
        ObjectMapper
      • jsonToObject

        public static <T> T jsonToObject​(String jsonStr,
                                         com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
                                  throws com.fasterxml.jackson.core.JsonProcessingException
        Converts json String response to the desired subclass instance.
        Parameters:
        jsonStr - the json string value
        typeReference -
        Returns:
        the desired subclass instance
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
        com.fasterxml.jackson.databind.JsonMappingException