code: def emit(self):
          
          # Skip serialize
          if not isinstance(self.response, SerializedHttpResponse):
              return self.response
  
          self.response.content = self.serialize(self.response.response)
          self.response['Content-type'] = self.media_type
          return self.response
docs: Serialize response.
  
          :return response: Instance of django.http.Response