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_collection_of_object_values("containers", self.containers)
        writer.write_object_value("controller", self.controller)
        writer.write_collection_of_object_values("ephemeralContainers", self.ephemeral_containers)
        writer.write_collection_of_object_values("initContainers", self.init_containers)
        writer.write_object_value("labels", self.labels)
        writer.write_str_value("name", self.name)
        writer.write_object_value("namespace", self.namespace)
        writer.write_object_value("podIp", self.pod_ip)
        writer.write_object_value("serviceAccount", self.service_account)

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