jsonBody method
dynamic
jsonBody()
Decodes the response body as JSON.
Implementation
dynamic jsonBody() {
if (body.trim().isEmpty) return const <String, dynamic>{};
return jsonDecode(body);
}
Decodes the response body as JSON.
dynamic jsonBody() {
if (body.trim().isEmpty) return const <String, dynamic>{};
return jsonDecode(body);
}