Class SerializationUtils
- java.lang.Object
-
- app.coronawarn.server.services.distribution.utils.SerializationUtils
-
public final class SerializationUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> T
deserializeJson(String jsonString, Function<com.fasterxml.jackson.databind.type.TypeFactory,com.fasterxml.jackson.databind.JavaType> typeProviderFunction)
Deserialize json string into an object of type T.
-
-
-
Method Detail
-
deserializeJson
public static <T> T deserializeJson(String jsonString, Function<com.fasterxml.jackson.databind.type.TypeFactory,com.fasterxml.jackson.databind.JavaType> typeProviderFunction)
Deserialize json string into an object of type T. The type must also be provided to the underlying Jackson library in the form of a JavaType supplied by the function parameter.- Parameters:
jsonString
- value from configuration filetypeProviderFunction
- type deserialization function provider- Returns:
- deserialized json string
-
-