def METHOD_NAME(self):
    if self.request.method == "GET":
        return serializers.SafeMessageResponseSerializer
    elif self.request.method == "POST":
        return serializers.SafeMessageSerializer