dataIs<X> method
Whether the data is an X.
Example:
if (response.dataIs<TwoFactorRequired>()) { ... }
Implementation
bool dataIs<X>() => data is X;
Whether the data is an X.
Example:
if (response.dataIs<TwoFactorRequired>()) { ... }
bool dataIs<X>() => data is X;