public static Map getResultKeyConvertedToCamelCase()

in src/main/java/platform/qa/base/convertors/RestApiConvertor.java [92:100]


    public static Map getResultKeyConvertedToCamelCase(String path, Map<Object, Object> result) {
        String oldKey = String.valueOf(result.keySet().stream().findFirst().orElseThrow());
        String newKey = CaseFormat.LOWER_HYPHEN.to(CaseFormat.LOWER_CAMEL, String.format("%s-%s", path, oldKey));
        if (!newKey.equals(oldKey)) {
            result.put(newKey, result.get(oldKey));
            result.remove(oldKey);
        }
        return result;
    }