public class DeserializationHelpers
|castObject(ObjectMapper mapper, Object payload, Class<T> clazz)||
Converts the payload object into a generic type. There are two different paths we will have to take based on the type T In case of a String, we need to write the value of the payload as a String In case of any other type that the user decides to deserialize the payload, we will use mapper.convertValue to perform the conversion. Updates a digital twin.