@classmethod
def from_response(cls, client, response):
    """Construct an Atm location instance from a response dict."""
    return cls(client=client, json=response, address_city=response[
        'atmLocation'].get('address').get('city'), address_country=response
        ['atmLocation'].get('address').get('country'), address_postal_code=
        response['atmLocation'].get('address').get('postalCode'),
        address_state=response['atmLocation'].get('address').get('state'),
        address_street=response['atmLocation'].get('address').get('street'),
        latitude=response['atmLocation'].get('coordinates').get('latitude'),
        longitude=response['atmLocation'].get('coordinates').get(
        'longitude'), id=response['atmLocation']['id'], isAvailable24Hours=
        response['atmLocation']['isAvailable24Hours'], isDepositAvailable=
        response['atmLocation']['isDepositAvailable'],
        isHandicappedAccessible=response['atmLocation'][
        'isHandicappedAccessible'], isOffPremise=response['atmLocation'][
        'isOffPremise'], isSeasonal=response['atmLocation']['isSeasonal'],
        languageType=response['atmLocation']['languageType'],
        locationDescription=response['atmLocation']['locationDescription'],
        logoName=response['atmLocation']['logoName'], name=response[
        'atmLocation']['name'], distance=response['distance'])
