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("allProperties", self.all_properties)
        writer.write_bool_value("credentialsWithUsageSign", self.credentials_with_usage_sign)
        writer.write_bool_value("credentialsWithUsageVerify", self.credentials_with_usage_verify)
        writer.write_bool_value("isEnabled", self.is_enabled)
        writer.write_str_value("@odata.type", self.odata_type)
        writer.write_bool_value("tokenEncryptionKeyId", self.token_encryption_key_id)
        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/service_principal_lock_configuration.py