valueOrNullIfBlank

fun ERROR CLASS: Symbol not found for LiveData<kotlin/String>.valueOrNullIfBlank(): String?

Returns this LiveData's current value, or null when it is unset or blank.

Used for optional payload fields that should be omitted (sent as null) when the user has not entered anything.