DEV Community

Discussion on: Getting Started with Appwrite Realtime for Flutter

Collapse
akamaicloud profile image
Otto Akama

For some reason, the _loadItems method could not work for me. However, when I assigned items to this it worked.

items = results.documents
.map((document) => {"name": document.data['name']})
.toList();

I guess because of different versions of AppWrite.

Collapse
lohanidamodar profile image
Damodar Lohani Author

Yes actually the new Appwrite SDK has the response models so we no longer receive map