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_object_value("destinationAddress", self.destination_address)
        writer.write_int_value("destinationPort", self.destination_port)
        writer.write_enum_value("protocol", self.protocol)
        writer.write_object_value("sourceAddress", self.source_address)
        writer.write_int_value("sourcePort", self.source_port)

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