use of com.hp.octane.integrations.dto.entities.ResponseEntityList in project octane-ci-java-sdk by MicroFocus.
the class EntityImpl method deserializeEntityListFromMap.
private ResponseEntityList deserializeEntityListFromMap(Map<String, Object> map) {
ResponseEntityList list = dtoFactory.newDTO(ResponseEntityList.class);
list.setTotalCount((int) map.get(COLLECTION_TOTAL_COUNT_FIELD));
List<Map<String, Object>> data = (List) map.get(COLLECTION_DATA_FIELD);
for (Map<String, Object> entry : data) {
Entity entity = deserializeEntityFromMap(entry);
list.addEntity(entity);
}
return list;
}
Aggregations