    def from_dict(cls, link):
        """Transforms a Python dictionary to a TransactionLink object.

            Args:
                link (dict): The link to be transformed.

            Returns:
                :class:`~bigchaindb.common.transaction.TransactionLink`
        """
        try:
            return cls(link['transaction_id'], link['output_index'])
        except TypeError:
            return cls()
Transforms a Python dictionary to a TransactionLink object.

Args:
link (dict): The link to be transformed.

Returns:
:class:`~bigchaindb.common.transaction.TransactionLink`
bigchaindb/common/transaction.py