def from_json(self, dictionary):
    """Converts from a JSON dictionary to a DatabaseTable object."""
    self.original_table_name = dictionary['original_table_name']
    self.table_name_wordpieces = [
        Wordpiece().from_json(wordpiece)
        for wordpiece in dictionary['table_name_wordpieces']
    ]
    self.table_columns = [
        TableColumn().from_json(column)
        for column in dictionary['table_columns']
    ]
    self.matches_to_utterance = dictionary['matches_to_utterance']

    return self
Converts from a JSON dictionary to a DatabaseTable object.
language/xsp/data_preprocessing/schema_utils.py