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_bool_value("activeExploitsObserved", self.active_exploits_observed)
        writer.write_collection_of_object_values("articles", self.articles)
        writer.write_collection_of_primitive_values("commonWeaknessEnumerationIds", self.common_weakness_enumeration_ids)
        writer.write_collection_of_object_values("components", self.components)
        writer.write_datetime_value("createdDateTime", self.created_date_time)
        writer.write_object_value("cvss2Summary", self.cvss2_summary)
        writer.write_object_value("cvss3Summary", self.cvss3_summary)
        writer.write_object_value("description", self.description)
        writer.write_collection_of_object_values("exploits", self.exploits)
        writer.write_bool_value("exploitsAvailable", self.exploits_available)
        writer.write_bool_value("hasChatter", self.has_chatter)
        writer.write_datetime_value("lastModifiedDateTime", self.last_modified_date_time)
        writer.write_int_value("priorityScore", self.priority_score)
        writer.write_datetime_value("publishedDateTime", self.published_date_time)
        writer.write_collection_of_object_values("references", self.references)
        writer.write_object_value("remediation", self.remediation)
        writer.write_enum_value("severity", self.severity)

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