code: def get_serializer_class(self, **kwargs) -> Type[Serializer]:
          
          assert self.serializer_class is not None, (
              "'%s' should either include a `serializer_class` attribute, "
              "or override the `get_serializer_class()` method."
              % self.__class__.__name__
          )
  
          return self.serializer_class
docs: Return the class to use for the serializer.
          Defaults to using `self.serializer_class`.
  
          You may want to override this if you need to provide different
          serializations depending on the incoming request.
  
          (Eg. admins get full serialization, others get basic serialization)