Google Cloud Functions: Return valid JSON
问题 I´m trying to call a Google Cloud Function from my Flutter App using the cloud_functions package. This is my Cloud Function: export const helloWorld = functions.region('europe-west1').https.onRequest((request, response) => { response.status(200).json({ message: "Hello World!" }); }); And this is my flutter method that calls this function: try { final dynamic resp = await CloudFunctions.instance.call( functionName: "helloWorld" ); print(resp); } on CloudFunctionsException catch (e) { ... }