dhunter/core/hash_base.py
def json_data_valid(self, json_dict: dict) -> bool:
        """Checks if given dict structure based on loaded JSON data matches requirements and is dump of our class
        """
        result = False

        data_type = json_dict.get(Const.FIELD_TYPE)
        version = json_dict.get(Const.FIELD_VERSION)
        if data_type is not None and version is not None:
            result = data_type == self.data_type and version <= self.data_version

        return result
Checks if given dict structure based on loaded JSON data matches requirements and is dump of our class
        
Checks if given dict structure based on loaded JSON data matches requirements and is dump of our class
Checks if given dict structure based on loaded JSON data matches requirements and is dump of our class
def json_data_valid(self, json_dict: dict) -> bool:
        result = False
        data_type = json_dict.get(Const.FIELD_TYPE)
        version = json_dict.get(Const.FIELD_VERSION)
        if data_type is not None and version is not None:
            result = data_type == self.data_type and version <= self.data_version
        return result
def json_data_valid ( self , json_dict : dict ) -> bool : result = False data_type = json_dict . get ( Const . FIELD_TYPE ) version = json_dict . get ( Const . FIELD_VERSION ) if data_type is not None and version is not None : result = data_type == self . data_type and version <= self . data_version return result
Checks if given dict structure based on loaded JSON data matches requirements and is dump of our class
Checks if given dict structure based on loaded JSON data matches requirements and is dump of our class
"""Checks if given dict structure based on loaded JSON data matches requirements and is dump of our class
        """
self
json_dict
dict