orKeepRequired

fun <T> PatchField<T>.orKeepRequired(current: T, fieldName: String): T(source)

Same as orKeep for a field that must never be null.

Throws

if this is Value(null); fieldName is used in the message.