I am making a request with dio
final Dio dio = new Dio();
return dio.post(api, data: data);
.then((response) {
print(response.data.runtimeType);
print(response.data);
print(response.data.token);
}
The response data is printed, and the type is _JsonMap
When I want to print response.data.token I get this error
Error: NoSuchMethodError: 'token'
How do I access the token value? Thank you