def _from_dict(cls, _dict):
        """Initialize a LogQueryResponseResult object from a json dictionary."""
        args = {}
        if 'environment_id' in _dict:
            args['environment_id'] = _dict.get('environment_id')
        if 'customer_id' in _dict:
            args['customer_id'] = _dict.get('customer_id')
        if 'document_type' in _dict:
            args['document_type'] = _dict.get('document_type')
        if 'natural_language_query' in _dict:
            args['natural_language_query'] = _dict.get('natural_language_query')
        if 'document_results' in _dict:
            args[
                'document_results'] = LogQueryResponseResultDocuments._from_dict(
                    _dict.get('document_results'))
        if 'created_timestamp' in _dict:
            args['created_timestamp'] = string_to_datetime(
                _dict.get('created_timestamp'))
        if 'client_timestamp' in _dict:
            args['client_timestamp'] = string_to_datetime(
                _dict.get('client_timestamp'))
        if 'query_id' in _dict:
            args['query_id'] = _dict.get('query_id')
        if 'session_token' in _dict:
            args['session_token'] = _dict.get('session_token')
        if 'collection_id' in _dict:
            args['collection_id'] = _dict.get('collection_id')
        if 'display_rank' in _dict:
            args['display_rank'] = _dict.get('display_rank')
        if 'document_id' in _dict:
            args['document_id'] = _dict.get('document_id')
        if 'event_type' in _dict:
            args['event_type'] = _dict.get('event_type')
        if 'result_type' in _dict:
            args['result_type'] = _dict.get('result_type')
        return cls(**args)
def _from_dict ( cls , _dict ) : args = { } if 'environment_id' in _dict : args [ 'environment_id' ] = _dict . get ( 'environment_id' ) if 'customer_id' in _dict : args [ 'customer_id' ] = _dict . get ( 'customer_id' ) if 'document_type' in _dict : args [ 'document_type' ] = _dict . get ( 'document_type' ) if 'natural_language_query' in _dict : args [ 'natural_language_query' ] = _dict . get ( 'natural_language_query' ) if 'document_results' in _dict : args [ 'document_results' ] = LogQueryResponseResultDocuments . _from_dict ( _dict . get ( 'document_results' ) ) if 'created_timestamp' in _dict : args [ 'created_timestamp' ] = string_to_datetime ( _dict . get ( 'created_timestamp' ) ) if 'client_timestamp' in _dict : args [ 'client_timestamp' ] = string_to_datetime ( _dict . get ( 'client_timestamp' ) ) if 'query_id' in _dict : args [ 'query_id' ] = _dict . get ( 'query_id' ) if 'session_token' in _dict : args [ 'session_token' ] = _dict . get ( 'session_token' ) if 'collection_id' in _dict : args [ 'collection_id' ] = _dict . get ( 'collection_id' ) if 'display_rank' in _dict : args [ 'display_rank' ] = _dict . get ( 'display_rank' ) if 'document_id' in _dict : args [ 'document_id' ] = _dict . get ( 'document_id' ) if 'event_type' in _dict : args [ 'event_type' ] = _dict . get ( 'event_type' ) if 'result_type' in _dict : args [ 'result_type' ] = _dict . get ( 'result_type' ) return cls ( ** args )
Initialize a LogQueryResponseResult object from a json dictionary.