bodyAsNumber method

num bodyAsNumber()

Converts the response data to a number.

Returns:

  • The response data as a number.

Implementation

num bodyAsNumber() {
  return num.parse(data);
}