def from_json(self, dictionary):
    """Sets the properties of the column from a dictionary representation."""
    self.original_column_name = dictionary['original_column_name']
    self.column_name_wordpieces = [
        Wordpiece().from_json(wordpiece)
        for wordpiece in dictionary['column_name_wordpieces']
    ]
    self.column_type = dictionary['column_type']
    self.table_name = dictionary['table_name']
    self.is_foreign_key = dictionary['is_foreign_key']
    self.matches_to_utterance = dictionary['matches_to_utterance']
    assert self.column_type in ACCEPTABLE_COL_TYPES, (
        ('Column type not '
         'recognized: %r; name: %r') %
        (self.column_type, self.original_column_name))

    return self
Sets the properties of the column from a dictionary representation.
language/xsp/data_preprocessing/schema_utils.py