@classmethod
    def serialize(cls):
        return {item.name: item.as_dict() for item in cls}
Formats all enum members for external use (e.g., angular code).
dataset/ETHPy150Open unlimitedlabs/orchestra/orchestra/utils/models.py/ChoicesEnum.serialize