The entity body object of a response can be retrieved by calling $response->getBody() . The response EntityBody can be cast to a string, or you can pass true to this method to retrieve the body as a string.
Read moreHow do I fetch API data in flutter?
Flutter – Fetching Data From the Internet
Read more