Search code examples
androidfirebasekotlingetter-setter

How do I write up my models' code to fetch according to my database


FirebaseDatabase1 modellogcatRefview


Solution

  • had to change: val model = snapshot.getValue(BestDealModel::class.java) tempList.add(model!!) to val model = itemSnapshot.getValue(BestDealModel::class.java) tempList.add(model!!)