<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_assigned_resource(self, resource_type: str, value: Union[str, int, float, bool], parameters: dict = None):
 """Add assigned resource to the processing block. Args: resource_type (str):
 Resource type value: Resource value parameters (dict, optional):
 Parameters specific to the resource """

        if parameters is None:
            parameters = dict()
        resources = DB.get_hash_value(self.key, 'resources_assigned')
        resources = ast.literal_eval(resources)
        resources.append(dict(type=resource_type, value=value,
                              parameters=parameters))
        DB.set_hash_value(self.key, 'resources_assigned', resources)