def to_json(self, nested=False):
        data = {
            "id": self.pk,
            "object_type": "action",
            "identifier": self.identifier,
            "name": self.name,
            "url": self.url,
        }

        if not nested:
            data["concept"] = self.concept.to_json(nested=True)

        return data