I'm using Appwrite Dart SDK "24.2.0". When I perform a listRows call in dart, I have this reponse in JSON:
in " Future<models.RowList> listRows()"
{
"total" : 1,
"rows" : [ {
"name" : "test",
"birthday" : "2025-10-02T00:00:00.000+00:00",
"sortIndex" : 70,
"$id" : "68e16247802c82f620c9",
"$sequence" : "69",
"$createdAt" : "2025-10-04T18:07:05.869+00:00",
"$updatedAt" : "2025-12-17T11:24:38.708+00:00",
"$permissions" : [ "read(user:68baf8704fd58f781548)", "update(user:68baf8704fd58f781548)", "delete(user:68baf8704fd58f781548)" ],
"$databaseId" : "xxxx",
"$tableId" : "yyyy"
} ]
}
But the code in "factory Row.fromMap(Map<String, dynamic> map)" expects to find the coluln data in a "data" json entry:
return Row(
$id: map['id'].toString(),
$sequence: map['sequence'].toString(),
$tableId: map['tableId'].toString(),
$databaseId: map['databaseId'].toString(),
$createdAt: map['createdAt'].toString(),
$updatedAt: map['updatedAt'].toString(),
$permissions: List.from(map['permissions'] ?? []),
data: Map<String, dynamic>.from(map["data"] ?? {}),
);
What am I doing wrong ?
Recommended threads
- I'm getting an error on the console "j?....
On my self hosted instance version 1.8.1 the console is giving me this error when trying to view the rows for a table I recently created. My application is read...
- Websites hosted on my appwrite sites hav...
Hello, all my websites hosted on appwrite sites are not running I am getting this message "This site can’t be reached drivehub.appwrite.network took too long t...
- Appwrite Auth & Function don't reveal cl...
When I execute a function or sign in with my Flutter app, Appwrite does not show my real IP: instead, it seems that Appwrite shows Fastly CDN IP address.