https://kotlinlang.org logo
Title
u

user

07/18/2022, 4:41 PM
[Kotlin][Firestore]Turn a list of data objects into a hash map, send it to firestore, retrieve the data and turn it back into a list of objects again Bloody beginner in Kotlin/Android here and trying his best. Problem: I am trying to push a list of data objects into firebase and managed to pull that off with the following function: fun createData(collectionName:String){ //Create Data here val docData: MutableMap = HashMap() docData["data"] = Arrays.asList( JournalEntry("Title 1", 0, 0), JournalEntry("Title 2", 0, 1), JournalEntry("Title 3", 0, 0) ) db.collection(collectionName)...