public class DeserializationHelpers extends Object
| Constructor and Description |
|---|
DeserializationHelpers() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
castObject(com.fasterxml.jackson.databind.ObjectMapper mapper,
Object payload,
Class<T> clazz)
Converts the payload object into a generic type.
|
public static <T> T castObject(com.fasterxml.jackson.databind.ObjectMapper mapper,
Object payload,
Class<T> clazz)
throws com.fasterxml.jackson.core.JsonProcessingException
T - The generic type to deserialize the object into.mapper - Object Mapperpayload - payload object to cast.clazz - The class to deserialize the object into.com.fasterxml.jackson.core.JsonProcessingException - Json parsing exception.Copyright © 2022. All rights reserved.