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("appId", self.app_id)
        writer.write_str_value("appOwnerTenantId", self.app_owner_tenant_id)
        writer.write_str_value("servicePrincipalName", self.service_principal_name)
        writer.write_str_value("servicePrincipalObjectId", self.service_principal_object_id)
        writer.write_enum_value("servicePrincipalType", self.service_principal_type)
        writer.write_str_value("tenantId", self.tenant_id)

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