Creates an XDR Operation object that represents this
        :class:`Operation`.

def to_xdr_object(self):
        """Creates an XDR Operation object that represents this
        :class:`Operation`.

        """
        try:
            source_account = [account_xdr_object(self.source)]
        except StellarAddressInvalidError:
            source_account = []
        return Xdr.types.Operation(source_account, self.body)