Question: what is the difference between map and switchmap?
Answer: switchMap() returns the same MediatorLiveData not a new LiveData every time the SourceLiveData changes. So map() takes LiveData<User> and transforms it into a String , if User object changes name field changes for instance. switchMap() takes a String and gets LiveData<User> using it.