map

fun <S, T> LiveData<T>.map(transformT: (T) -> S): LiveData<S>

Maps the value of the LiveData to a new value using the provided transformation function.