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_str_value("allowedIpAddresses", self.allowed_ip_addresses)
        writer.write_collection_of_primitive_values("allowedResourceTypes", self.allowed_resource_types)
        writer.write_collection_of_primitive_values("allowedServices", self.allowed_services)
        writer.write_datetime_value("expiryDateTime", self.expiry_date_time)
        writer.write_collection_of_primitive_values("permissions", self.permissions)
        writer.write_str_value("protocol", self.protocol)
        writer.write_str_value("signatureHash", self.signature_hash)
        writer.write_str_value("signedWith", self.signed_with)
        writer.write_datetime_value("startDateTime", self.start_date_time)
        writer.write_object_value("storageResource", self.storage_resource)

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