ExtendedResponse extension
Extension for dio
's Response class
- on
-
- Response
Methods
-
body<
T extends DataModel> (Type type) → T -
Available on Response, provided by the ExtendedResponse extension
Convert response body to a DataModel -
bodyAsDecimal(
) → double -
Available on Response, provided by the ExtendedResponse extension
-
bodyAsInteger(
) → int -
Available on Response, provided by the ExtendedResponse extension
-
bodyAsList<
T extends DataModel> (Type type) → List< T> -
Available on Response, provided by the ExtendedResponse extension
Convert response body to a list of DataModel -
bodyAsNumber(
) → num -
Available on Response, provided by the ExtendedResponse extension
-
bodyAsString(
) → String -
Available on Response, provided by the ExtendedResponse extension
Get response body as text string