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_enum_value("behaviorDuringRetentionPeriod", self.behavior_during_retention_period)
        writer.write_bool_value("isContentUpdateAllowed", self.is_content_update_allowed)
        writer.write_bool_value("isDeleteAllowed", self.is_delete_allowed)
        writer.write_bool_value("isLabelUpdateAllowed", self.is_label_update_allowed)
        writer.write_bool_value("isMetadataUpdateAllowed", self.is_metadata_update_allowed)
        writer.write_bool_value("isRecordLocked", self.is_record_locked)
        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/retention_label_settings.py