Skip to content

OpenRouterCustomPayload

This docs was updated at: 2026-02-23

com.paragon.responses.OpenRouterCustomPayload  ยท  Record


Methods

isEmpty

public boolean isEmpty()

Checks if all fields in this payload are null.

Returns

true if all fields are null, false otherwise


orNullIfEmpty

public @Nullable OpenRouterCustomPayload orNullIfEmpty()

Returns this payload or null if all fields are null.

Returns

this payload if not empty, null otherwise