in src/functions_framework/_typed_event.py [0:0]
def _validate_input_type(input_type):
if not (
hasattr(input_type, "from_dict") and callable(getattr(input_type, "from_dict"))
):
raise AttributeError(
"The type {decorator_type} does not have the required method called "
" 'from_dict'.".format(decorator_type=input_type)
)