Creating Models in Android

In iOS there is a class called CBLModel which is used to extend classes to enable them to interact with Couchbase. Is there any class that can be extended with Java in Android that will accomplish something similar?

There isn’t an equivalent in Android. But you can use any of the many third party JSON parsing libraries available for Android for mapping JSON to POJOs and then you handle the conversion from POJO to data types that CBL expects . This post is an example of using Jackson with Couchbase Lite .

1 Like