Hello,
We are now importing code from the Swift version of the project we are working on into or Kotlin version. Wr are having difficulties. For example:
Backendless.Data.Of(“Test”).create()
Only gives options to save a list of HashMaps instead of list of Custom classes. Is there anything we are missing? Can you give a sample code?
I think it would be this:
Backendless.Data.of(YourKotlinClass::class.java).find()
Regards,
Mark
HI Mark,
We are trying to save an array list of custom classes. The only thing we see is to save hash maps, and not custom classes.
Hi Michael,
There are two of() methods - one taking table name as a string and the other which takes a Class object. Please make sure you are using the latter.
Regards,
Mark
HI Mark,
Thanks for the quick reply. We will try that, and report back with the results.
Michael