'How to store a non-serializable class' object in Room Database?

I am working in Pose Estimation library from Google ML Kit

The lib storing the retrieved poses in a class Pose which contains a array of PoseLandmark class

Now I need to store the Pose class in the Room DB table .

Since , Both classes are non-serializable and not allowing to instantiate objects directly (only ML Kit have access to builders ),

So I unable to write Type Converters to them .

Is it possible to store these type of classes in Room DB (or atleast using new Jetpack DataStore)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source