"""This module contains the test serializers of the ``broker_models_hooks`` app"""

from rest_framework import serializers

from .models import (
    ModelWithBrokerHook,
    ModelWithBrokerHookM2MRelatedMixin,
    SyncableModelWithBrokerHook
)


class ModelWithBrokerHookSerializer(serializers.ModelSerializer):
    """Serializer for the ``ModelWithBrokerHook`` model."""

    class Meta:
        model = ModelWithBrokerHook
        fields = '__all__'


class SyncableModelWithBrokerHookSerializer(serializers.ModelSerializer):
    """Serializer for the ``SyncableModelWithBrokerHook`` model."""

    class Meta:
        model = SyncableModelWithBrokerHook
        fields = '__all__'


class ModelWithBrokerHookM2MRelatedMixinSerializer(serializers.ModelSerializer):
    """Serializer for the ``ModelWithBrokerHookM2MRelatedMixin`` model."""

    class Meta:
        model = ModelWithBrokerHookM2MRelatedMixin
        fields = '__all__'
