Как разобрать Firebase JSON для отображения в RecyclerView?

Что не так в приведенном ниже коде:
databaseJobPost = FirebaseDatabase.getInstance().getReference("job_post");
databaseJobPost.addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(DataSnapshot snapshot) {
addPostListModels.clear();
for (DataSnapshot postSnapshot: snapshot.getChildren()) {
System.out.println("university"+postSnapshot.getKey());
AddPostModel university = postSnapshot.getValue(AddPostModel.class);
addPostListModels.add(university);
// here you can access to name property like university.name
}
jobLisitingAdapter=new JobLisitingAdapter(JobListingAcitivity.this,addPostListModels);
rvPostRecycler.setAdapter(jobLisitingAdapter);
}