Serialization helpers for OCSF events and nested objects.
Converts %OCSF.Event{} and nested structs into OCSF-compliant
nested maps. Resolves enum UIDs to their human-readable _name
labels per OCSF convention.
Prefer OCSF.to_map/1 over calling this module directly.
See OCSF.Event, OCSF.Metadata.
Summary
Functions
Convert an %OCSF.Event{} to an OCSF-compliant nested map.
Functions
@spec to_map(OCSF.Event.t()) :: map()
Convert an %OCSF.Event{} to an OCSF-compliant nested map.
Nil fields are omitted. Integer UIDs are emitted as-is; their
corresponding _name labels are added alongside.