nwm_region_mgr.utils.dict_utils.convert_enum_to_value#
- nwm_region_mgr.utils.dict_utils.convert_enum_to_value(obj)[source]#
Recursively convert Enum values to their .value (string) for YAML serialization.
- Return type:
Any- Parameters:
obj – The object to convert, which can be a dictionary, list, or an Enum instance.
- Returns:
The converted object with Enum values replaced by their string representations.