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("allowChannelMentions", self.allow_channel_mentions)
        writer.write_bool_value("allowOwnerDeleteMessages", self.allow_owner_delete_messages)
        writer.write_bool_value("allowTeamMentions", self.allow_team_mentions)
        writer.write_bool_value("allowUserDeleteMessages", self.allow_user_delete_messages)
        writer.write_bool_value("allowUserEditMessages", self.allow_user_edit_messages)
        writer.write_str_value("@odata.type", self.odata_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/team_messaging_settings.py