def METHOD_NAME(
    self,
    value: dict,
    serialization_type: str,
) -> Optional[Dict[str, Any]]:
    """Serialize dict."""
    serialized_dict = {}
    for key in value.keys():
        serialized_item = self.serialize_item(value[key], serialization_type)
        if serialized_item is not None:
            serialized_dict[key] = serialized_item
    if len(serialized_dict.keys()) == 0:
        return None
    return serialized_dict