I am trying to parse data from a node of firebase, which contain this json value here is pic of json of node
and corresponding data model i have created is look like this
public class Extreme {
@SerializedName("metaData")
public ThreadModel.MetaData metaData;
@SerializedName("users")
public List<Users> usersList;
@SerializedName("messages")
public List<MessagesTwo> messagesList;
public static class MetaData{
@SerializedName("createBy")
public String createBy;
@SerializedName("createdAt")
public Long createdAt;
@SerializedName("name")
public String name;
@SerializedName("type")
public String type;
@SerializedName("threadPic")
public String threadPic;
}
public static class Users{
public String key;
public boolean value;
}
}
but here is the problem when i try to parse the data from firebase database snapshot it only parse metaData's value to model, all other thing just went ignore. I just want to know what should be the corresponding model look alike. It happens to me often which makes me to put this question on stack overflow. Sorry if there is any duplication of this question..