asLiveData

fun <T> MutableLiveData<T>.asLiveData(): LiveData<T>

Convenience method to create non-mutable LiveData fields without duplicating the type.