'Transforms a Python dictionary to a TransactionLink object.
Args:
link (dict): The link to be transformed.
Returns:
:class:`~bigchaindb.common.transaction.TransactionLink`'

@classmethod
def from_dict(cls, link):

    try:
        return cls(link['transaction_id'], link['output_index'])
    except TypeError:
        return cls()
