-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
Sometimes we need to convert the model instance to json. E.g. to write the instance to sharepref.
So, how can we convert the model instance to json? Due to there's no copyFromRealm() in realm-kotlin, using Gson().toJson(model) is giving java.lang.StackOverflowError: stack size 8192KB