DeserializationHelpers Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. service. digitaltwin. serialization. DeserializationHelpers
- com.
public class DeserializationHelpers
Method Summary
Modifier and Type | Method and Description |
---|---|
static<T> T |
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. |
Method Details
castObject
public static static
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.
Parameters:
Returns:
Throws:
Applies to
Azure SDK for Java