valueOrNull
Flattens this AtField into a nullable: the wrapped value when AtField.Defined, otherwise null.
Both AtField.Missing (key absent) and AtField.Null (key present with an explicit JSON null) collapse to null. That's what most read-side code wants, e.g. mapping a record into UI state:
val facets: List<Facet>? = post.facets.valueOrNull()Content copied to clipboard
When absent and explicitly-null mean different things (a PATCH-style update, for example), match on the three states with when instead.