ApiHelper
May 27, 2025 ยท View on GitHub
This is a Helper class with commonly used utilities for the SDK.
Fields
| Name | Description | Type |
|---|---|---|
| mapper | Deserialization of Json data. | ObjectMapper |
Methods
| Name | Description | Return Type |
|---|---|---|
serialize(Object obj) | Json Serialization of a given object. | String |
deserialize(String json) | Json deserialization of the given Json string. | LinkedHashMap<String, Object> |
deserialize(String json, Class<T> clazz) | Json deserialization of the given Json string. | <T extends Object> T |
deserialize(String json, TypeReference<T> typeReference) | JSON Deserialization of the given json string. | <T extends Object> T |
deserializeArray(String json, Class<T[]> classArray) | JSON Deserialization of the given json string. | <T extends Object> List<T> |