google.internal._gm_strip_nulls
(internal) Drop every null-valued object entry, recursively — the BAML equivalent of serde's `skip_serializing_if = "Option::is_none"`. Array ELEMENTS are never dropped (a null element is a positional value), and `_gm_is_opaque_key` subtrees are copied verbatim.
Reference version
Signature
function google.internal._gm_strip_nulls(value: baml.json.json, opaque: bool) -> baml.json.json
(internal) Drop every null-valued object entry, recursively — the BAML equivalent of
serde's skip_serializing_if = "Option::is_none". Array ELEMENTS are never
dropped (a null element is a positional value), and _gm_is_opaque_key
subtrees are copied verbatim.
Source:<builtin>/google/ns_internal/gemini.bamlbytes 8563–9381