I create Map <String,List<Object>>
val groupListByUserName = sharedList.groupBy { it -> it.user.displayName }
this function groupBy list by userNAme. Next I create model
data class SharedList(val userName:String,val sharedList: List<MovieMyList>)
I want add data with map to list and I don't konw how. Do you have any idea how make this?