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("baseUrl", self.base_url)
        writer.write_str_value("login", self.login)
        writer.write_str_value("owner", self.owner)
        writer.write_str_value("ownerType", self.owner_type)
        writer.write_str_value("repoId", self.repo_id)

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