public static PolicyIdList convertPolicyIds(List<Object> json) {
if (json == null) {
return null;
}
PolicyIdListImpl result = new PolicyIdListImpl();
List<String> policyIds = new ArrayList<String>();
for (Object obj : json) {
if (obj instanceof String) {
policyIds.add((String) obj);
}
}
result.setPolicyIds(policyIds);
return result;
}