text: from rest_framework import serializers
  from .models import Match, Message
  
  
  class MatchIdSerializer(serializers.Serializer):
      match = serializers.PrimaryKeyRelatedField(queryset=Match.objects.all())
  
  
  class MessageSerializer(serializers.ModelSerializer):
      class Meta:
          model = Message
          fields = "__all__"
  
  
  class SendMessageSerializer(serializers.Serializer):
      match = serializers.PrimaryKeyRelatedField(queryset=Match.objects.all())
      content = serializers.CharField()
  