@classmethod
def from_response(cls, node, response):
    """Construct a Transaction from a response dict."""
    fee_amount = None
    fee_note = None
    fee_to_id = None
    if response.get('fees'):
        fee_amount = response['fees'][-1]['fee'],
        fee_note = response['fees'][-1]['note'],
        fee_to_id = response['fees'][-1]['to']['id']
    return cls(node=node, json=response, id=response['_id'], amount=
        response['amount']['amount'], currency=response['amount'][
        'currency'], client_id=response['client']['id'], client_name=
        response['client']['name'], created_on=response['extra'][
        'created_on'], ip=response['extra']['ip'], latlon=response['extra']
        ['latlon'], note=response['extra']['note'], process_on=response[
        'extra']['process_on'], supp_id=response['extra']['supp_id'], fees=
        response['fees'], recent_status=response['recent_status'], timeline
        =response['timeline'], from_info=response['from'], to_info=response
        ['to'], to_type=response['to']['type'], to_id=response['to']['id'],
        fee_amount=fee_amount, fee_note=fee_note, fee_to_id=fee_to_id)
