bodyAsDouble method

double bodyAsDouble()

Converts the response data to a double.

Returns:

  • The response data as a double.

Implementation

double bodyAsDouble() {
  return (data as num).toDouble();
}