update code resolve conflict
This commit is contained in:
@@ -183,5 +183,14 @@ public class Helper {
|
||||
|
||||
return user;
|
||||
}
|
||||
|
||||
public <T> T convertJsonToObject(String json, Class<T> clazz) {
|
||||
try {
|
||||
return objectMapper.readValue(json, clazz);
|
||||
} catch (Exception e) {
|
||||
throw new CustomException("Invalid JSON from payment API", "FAILED", 400, json);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user