def get_sdk_type()

in azurefunctions-extensions-bindings-eventhub/azurefunctions/extensions/bindings/eventhub/eventData.py [0:0]


    def get_sdk_type(self) -> Optional[EventDataSDK]:
        """
        When receiving an EventHub message, the content portion after being decoded
        is used in the constructor to create an EventData object. This will contain
        fields such as message, enqueued_time, and more.
        """
        # https://github.com/Azure/azure-sdk-for-python/issues/39711
        if self.decoded_message:
            return EventDataSDK._from_message(self.decoded_message)

        return None