Collection<JSONObject> data = JSONArray.fromObject(result.getData());
Collection<VolumeState> coll=data.stream().map(volumeStateIO ->(VolumeState) JSONObject.toBean(volumeStateIO, VolumeState.class)).collect(Collectors.toList());
Collection<JSONObject> data = JSONArray.fromObject(result.getData());
Collection<VolumeState> coll=data.stream().map(volumeStateIO ->(VolumeState) JSONObject.toBean(volumeStateIO, VolumeState.class)).collect(Collectors.toList());