ย ยทย Starting with Flutter

Converting datatypes from JSON to documents

Database & APIs

Hi all,

I have a query API call that returns the result into a custom datatype variable (using Json -> To Data Type option). I would like to convert this variable into a Document. This way I could feed a widget with same input, regardless wether it's coming from a Firestore query or an API call.

I have written a function for this (with the help of ChatGPT) but the parser complains about not finding two methods which are indeed included in /backend/schema/structs/groups_struct.dart. The file is there (checked it in GitHub) and the imports defined should be enough.

Any idea why my function doesn't get validated?

TIA,

Llorenc

What have you tried so far?

Checked the docs, searched the forum, tried IA...

Did you check FlutterFlow's Documentation for this topic?
Yes
1
8 replies