to_dict
to_dict
Convert all contexts to a dictionary for SWML generation. Calls validate()
first and raises ValueError if the configuration is invalid.
Returns
dict[str, Any] — A mapping of context names to their serialized dictionaries,
ready for inclusion in the SWML document.