asSucceeded property
Succeeded
asSucceeded
Cast this into a Succeeded, and throw an exception if the cast fails!
It might be tempting to just cast the RequestStatus into the desired type, but it's
strongly advised to not do that indiscriminately
. Although, it might be convenient to have
this cast sometimes. Use it wisely!
Implementation
Succeeded get asSucceeded => this as Succeeded;