I have following document structure.
{
id : "user1",
"foods":
[
{ "id": "1001", "type": "Regular" },
{ "id": "1002", "type": "Chocolate" },
{ "id": "1003", "type": "Blueberry" },
{ "id": "1004", "type": "Devil's Food" }
]
}
I cant seem to figure out, how to use this in android using couchbase-lite for android.
This is my Pojo structure currently , which represents this document.
class User{
private String id;
private ArrayList<Food> foods;
}
class Food{
private String id;
private String type;
}
Is this right mapping?
Any example link on github is really appreciated.
Thanks,
Brijesh