Rank 4: Virtual Machine
Question 1:
I am trying to get values of various keys from a decoded map that was encoded to string.
when I tried:
final decoded = json.decode(response.response);myMap = decoded;if (kDebugMode) { print(decoded["S"][0]);}I kept getting the value of S but an index zero, even as 0 is also a key of another map on server
............
Question 2
Am unable to get more than one responses from the cloud function, only the last one is gotten as response, despite others are directly above it.
I tried this:
res.json({ 'MTN_CG_Values': mtnCGValues.toString(), });
res.json({ 'MTN_CG_Model': mtnCGModel.toString(), });