Rank 4: Virtual Machine
Error on Flutter App Terminal
Receiver: Instance of 'Execution'Tried calling: response```
**Flutter Code**```Future phoneValidatorExecutor = functions.createExecution( functionId: 'priceListID', body: jsonEncode("FetchList"), xasync: true, path: '/', method: 'POST', headers: { 'content-type': 'application/json', }, ); phoneValidatorExecutor.then((response) { dynamic decoded = json.decode(response.response); if (kDebugMode) { print(decoded.toString()); } List air = decoded["Response"]["air"].values.toList(); }).catchError((error) { if (kDebugMode) { print("Error gotten from server: ${error.toString()}"); } });```
**Dart Cloud Function Code**```String requestType = "";Future<dynamic> main(final context) async { context.log('Hello, Logs!'); context.error('Hello, Errors!'); requestType = context.log(context.req.bodyRaw); if (requestType == "validatorAndPriceList"){ return context.res.json({ "Status": normalUsersPriceDetailsSuperSet, }); }}```