(event)
return {
        "source_id": parent.source_id,
        "type": MessagingEvent.SOURCE_SLUGS.get(parent.source, 'unknown'),
        "name": get_event_display_api(parent),
    }
This is the 'trigger' for the event e.g. broadcast, conditional-alert etc.
This is the 'trigger' for the event e.g. broadcast, conditional-alert etc.
This is the trigger for the event e . g . broadcast conditional - alert etc .
def _serialize_event_source(event):
    """This is the 'trigger' for the event e.g. broadcast, conditional-alert etc."""
    parent = event.parent

    return {
        "source_id": parent.source_id,
        "type": MessagingEvent.SOURCE_SLUGS.get(parent.source, 'unknown'),
        "name": get_event_display_api(parent),
    }
def _serialize_event_source ( event ) : parent = event . parent return { "source_id" : parent . source_id , "type" : MessagingEvent . SOURCE_SLUGS . get ( parent . source , 'unknown' ) , "name" : get_event_display_api ( parent ) , }