Done ticket GEPAFINBE-178

This commit is contained in:
Piyush
2025-03-05 20:31:20 +05:30
parent 2f746e503b
commit e937f33aeb
12 changed files with 208 additions and 0 deletions

View File

@@ -788,4 +788,12 @@ public class Utils {
public static boolean isValidBoolean(String value) {
return "true".equalsIgnoreCase(value) || "false".equalsIgnoreCase(value);
}
public static Map<String, Object> convertJsonStringToMap(String jsonString) {
try {
return mapper.readValue(jsonString, Map.class);
} catch (Exception e) {
e.printStackTrace(); // Handle the exception
return null;
}
}
}