dataIs<X> method

bool dataIs<X>()

Whether the data is an X.

Example:

if (response.dataIs<TwoFactorRequired>()) { ... }

Implementation

bool dataIs<X>() => data is X;