def construct_deck_enums(self, decks_directory: pathlib.Path) -> Dict[(str, Any)]:
    '\n        Given Decks Path, compile enums based on the types found in the files\n        :param decks_directory: Path to the decks/ output directory\n        :return Sorted list of enum options for each key\n        '
    type_map: Dict[(str, Any)] = {}
    for (object_name, object_values) in self.deck_key_struct.items():
        type_map[object_name] = dict()
        for object_field_name in object_values:
            type_map[object_name][object_field_name] = set()
    for deck in decks_directory.glob('**/*.json'):
        with deck.open(encoding='utf-8') as file:
            content = json.load(file).get('data', {})
        for key in content.keys():
            if (key in self.deck_key_struct['deck']):
                type_map['deck'][key].add(content[key])
    return dict(sort_internal_lists(type_map))
Given Decks Path, compile enums based on the types found in the files
:param decks_directory: Path to the decks/ output directory
:return Sorted list of enum options for each key
def construct_deck_enums(self, decks_directory: pathlib.Path) -> Dict[(str, Any)]:
    '\n        Given Decks Path, compile enums based on the types found in the files\n        :param decks_directory: Path to the decks/ output directory\n        :return Sorted list of enum options for each key\n        '
    type_map: Dict[(str, Any)] = {}
    for (object_name, object_values) in self.deck_key_struct.items():
        type_map[object_name] = dict()
        for object_field_name in object_values:
            type_map[object_name][object_field_name] = set()
    for deck in decks_directory.glob('**/*.json'):
        with deck.open(encoding='utf-8') as file:
            content = json.load(file).get('data', {})
        for key in content.keys():
            if (key in self.deck_key_struct['deck']):
                type_map['deck'][key].add(content[key])
    return dict(sort_internal_lists(type_map))