from app.entities import models
from rest_framework import serializers
from app.applicationlayer.utils import model_to_dict


class AssetGroupSerializer(serializers.ModelSerializer):

    class Meta:
        model = models.AssetGroup
        fields = '__all__'
        read_only_fields = ['created', 'code']