dhunter/util/util.py
def json_data_valid(json_dict: dict, required_type: str, required_min_version: int) -> bool:
        """Checks if given dict structure based on loaded JSON data matches requirements and is dump of our class
        """
        result = False
        if Const.FIELD_TYPE in json_dict:
            if json_dict[Const.FIELD_TYPE] == required_type:
                if Const.FIELD_VERSION in json_dict:
                    if json_dict[Const.FIELD_VERSION] >= required_min_version:
                        result = True

        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(json_dict: dict, required_type: str, required_min_version: int) -> bool:
        result = False
        if Const.FIELD_TYPE in json_dict:
            if json_dict[Const.FIELD_TYPE] == required_type:
                if Const.FIELD_VERSION in json_dict:
                    if json_dict[Const.FIELD_VERSION] >= required_min_version:
                        result = True
        return result
def json_data_valid ( json_dict : dict , required_type : str , required_min_version : int ) -> bool : result = False if Const . FIELD_TYPE in json_dict : if json_dict [ Const . FIELD_TYPE ] == required_type : if Const . FIELD_VERSION in json_dict : if json_dict [ Const . FIELD_VERSION ] >= required_min_version : result = True 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
        """
json_dict
dict
required_type
str
required_min_version
int