Package vn.payos.util
Class DataConverterUtils
java.lang.Object
vn.payos.util.DataConverterUtils
DataConverterUtils
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DataConverterUtils
public DataConverterUtils()
-
-
Method Details
-
normalize
Converts an object to a specified target class using Jackson's ObjectMapper. Supports various input types including the target class itself, String (JSON), Map, and JsonNode.- Type Parameters:
T- The type parameter representing the target class- Parameters:
obj- The object to normalize/converttargetClass- The class to convert the object to- Returns:
- An instance of the target class
- Throws:
IllegalArgumentException- if the input object type is not supported
-