asQueryParameter

Casts the receiver to a QueryParameter of T, failing with a descriptive error otherwise.

Receiver

candidate value provided by generated code.

Return

receiver cast to QueryParameter with the expected value type.

Parameters

T

expected query parameter value type.

See also

Throws

when receiver is not a QueryParameter of the expected type.