I'm new in Android Kotlin and I want to GET an array of help in Firestore into my entity and this is my code:
val appCollection = App.context.db.collection("app")
val docApp = appCollection.document("info")
docApp.get().addOnCompleteListener { task ->
if (task.isSuccessful) {
val document = task.result
if (document.exists()) {
val list = document["help"] as List<*>?
}
}
}
how can i put that list into my entity, and this is my Entity
class Info() : Parcelable{
var help: List<Help>? = null
var howto: List<HowTo>? = null
var info: List<Info>? = null
