devices.serializers =================== .. py:module:: devices.serializers .. autoapi-nested-parse:: Serializers for Device-related API endpoints. Defines classes that handle validation and transformation of Device model instances to and from JSON. Module Contents --------------- .. py:class:: DeviceSerializer(instance=None, data=empty, **kwargs) Bases: :py:obj:`rest_framework.serializers.ModelSerializer`\ [\ :py:obj:`devices.models.DeviceModel`\ ] Serializer for Device instances. Handles conversion between Device model objects and JSON representations. .. py:class:: Meta Metadata for DeviceSerializer, defining model and serialized fields. .. py:attribute:: model .. py:attribute:: fields :value: '__all__'