<|file_name|>cluster.py<|end_file_name|><｜fim▁begin｜>from changes.api.serializer import Crumbler, register
from changes.models.node import Cluster


@register(Cluster)
class ClusterCrumbler(Crumbler):
    <|fim_middle|>

<｜fim▁end｜>
    def crumble(self, instance, attrs):
        return {
            'id': instance.id.hex,
            'name': instance.label,
            'dateCreated': instance.date_created,
        }