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.")
        super().serialize(writer)
        writer.write_datetime_value("createdDateTime", self.created_date_time)
        writer.write_enum_value("deploymentStatus", self.deployment_status)
        writer.write_str_value("displayName", self.display_name)
        writer.write_str_value("domainName", self.domain_name)
        writer.write_collection_of_object_values("healthIssues", self.health_issues)
        writer.write_enum_value("healthStatus", self.health_status)
        writer.write_int_value("openHealthIssuesCount", self.open_health_issues_count)
        writer.write_enum_value("sensorType", self.sensor_type)
        writer.write_object_value("settings", self.settings)
        writer.write_str_value("version", self.version)

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