getBoolean

Returns a boolean optional with an empty value if the key is not contained within the original response view.

Return

True, if: - The input was a boolean field with a value of "true" - The input was a text field with a value of "true" (case-insensitive) - The input was a number field with any number other than 0. Null, if: The specified key was not found. Otherwise, returns false

Parameters

key

The input key that holds the value of the response.