type) { ExternalProfileSyncedNotification::class => new ExternalProfileSyncedNotificationType(), default => throw new RuntimeException("Type not specified for notification {$value->type}"), }; return GraphQL::type($type->getName()); } }