I have an ArrayMap and I want a list of Chat to create and recyclerview.
val chats : ArrayMap<String,Chat>? = ArrayMap()
RecyclerView.Adapter
class ChatAdapter(var chats : ArrayList<Chat>){
.
.
.
}
I get this ArrayMap from firebase. What is the best way to get an ArrayList?