def export_organisation(organisation_id: int) -> typing.List[dict]:  # type: ignore[type-arg]
    """
    Serialize an organisation and all its related objects.
    """
    return _export_entities(
        _EntityExportConfig(Organisation, Q(id=organisation_id)),
        _EntityExportConfig(InviteLink, Q(organisation__id=organisation_id)),
        _EntityExportConfig(OrganisationWebhook, Q(organisation__id=organisation_id)),
        _EntityExportConfig(Subscription, Q(organisation__id=organisation_id)),
    )

    Serialize an organisation and all its related objects.
    
api/import_export/export.py