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_str_value("attribute", self.attribute)
        writer.write_str_value("defaultValue", self.default_value)
        writer.write_bool_value("editable", self.editable)
        writer.write_bool_value("hidden", self.hidden)
        writer.write_enum_value("inputType", self.input_type)
        writer.write_str_value("label", self.label)
        writer.write_str_value("@odata.type", self.odata_type)
        writer.write_collection_of_object_values("options", self.options)
        writer.write_bool_value("required", self.required)
        writer.write_str_value("validationRegEx", self.validation_reg_ex)
        writer.write_bool_value("writeToDirectory", self.write_to_directory)
        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/authentication_attribute_collection_input_configuration.py