Nil-safe casting helpers used by generated from_map/1 and to_map/1
functions. Unexpected shapes pass through unchanged (lenient casting), so
new or malformed API payloads never crash the SDK.
Summary
Functions
Dispatches a discriminated-union map to the caster for its discriminator value. Unknown discriminator values (and non-maps) pass through unchanged.
Drops nil-valued entries from a map.
Dumps a struct with fun; nil and already-plain values pass through.
Applies an enum cast/dump function; nil passes through.
Casts each element of a list with fun; non-lists pass through.
Casts each value of a map with fun; non-maps pass through.
Casts a nested map with fun; non-maps pass through.
Functions
Dispatches a discriminated-union map to the caster for its discriminator value. Unknown discriminator values (and non-maps) pass through unchanged.
Drops nil-valued entries from a map.
Dumps a struct with fun; nil and already-plain values pass through.
Applies an enum cast/dump function; nil passes through.
Casts each element of a list with fun; non-lists pass through.
Casts each value of a map with fun; non-maps pass through.
Casts a nested map with fun; non-maps pass through.