valueOrEmpty
Flattens a list-shaped AtField into a list: the wrapped list when AtField.Defined, otherwise an empty list.
Like valueOrNull, this collapses AtField.Missing and AtField.Null into the same result; use when when the difference matters.
val facets: List<Facet> = post.facets.valueOrEmpty()Content copied to clipboard