def serialize(self,writer: SerializationWriter) -> None:
        """
        Serializes information the current object
        param writer: Serialization writer to use to serialize this model
        Returns: None
        """
        if writer is None:
            raise TypeError("writer cannot be null.")
        writer.write_bool_value("allowMultipleLines", self.allow_multiple_lines)
        writer.write_bool_value("appendChangesToExistingText", self.append_changes_to_existing_text)
        writer.write_int_value("linesForEditing", self.lines_for_editing)
        writer.write_int_value("maxLength", self.max_length)
        writer.write_str_value("@odata.type", self.odata_type)
        writer.write_str_value("textType", self.text_type)
        writer.write_additional_data_value(self.additional_data)

        Serializes information the current object
        param writer: Serialization writer to use to serialize this model
        Returns: None
        
msgraph/generated/models/text_column.py