def _interpret_response(response: query.Response, response_type: Type[_T]) -> Optional[_T]:
    try:
        return response_type.from_dict(response.payload)
    except (KeyError, ValueError, dataclasses_json.mm.ValidationError) as exception:
        LOG.info(f'When interpretting {response.payload} as {response_type.__name__} got: {type(exception).__name__}({exception})')
        return None
def _interpret_response(response: query.Response, response_type: Type[_T]) -> Optional[_T]:
    try:
        return response_type.from_dict(response.payload)
    except (KeyError, ValueError, dataclasses_json.mm.ValidationError) as exception:
        LOG.info(f'When interpretting {response.payload} as {response_type.__name__} got: {type(exception).__name__}({exception})')
        return None