def METHOD_NAME(self, index: Dict) -> Optional[Dict]:
    mappings = index.get('mappings', dict())
    # Mapping types were removed in Elasticsearch 7. As a result, index mappings are formatted differently.
    # See https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html
    version = self._get_es_version()
    try:
        if int(version.split('.')[0]) >= 7:
            properties = mappings.get('properties', dict())
        else:
            properties = list(mappings.values())[0].get('properties', dict())
    except Exception:
        properties = dict()
    return properties