code: def post_loader(*decorator_args, serializer):
      
      def wrapped(fn):
          @wraps(fn)
          def decorated(*args, **kwargs):
              return fn(*serializer.load(request.get_json()))
          return decorated
  
      if decorator_args and callable(decorator_args[0]):
          return wrapped(decorator_args[0])
      return wrapped
docs: Decorator to automatically instantiate a model from json request data
  
      :param serializer: The ModelSerializer to use to load data from the request