
When I create a document everything works fine. But when I load a model, then I get the following error: "type String is not a sub type of int" which totaly make sense. But in the lib the code is like the following:
/// Document automatically incrementing ID. final int $sequence;
factory Document.fromMap(Map<String, dynamic> map) { return Document( $id: map['id'].toString(), $sequence: map['sequence'], $collectionId: map['collectionId'].toString(), $databaseId: map['databaseId'].toString(), $createdAt: map['createdAt'].toString(), $updatedAt: map['updatedAt'].toString(), $permissions: List.from(map['permissions'] ?? []), data: map, );
and is receives map['sequence'], as "1" for example. So it is a String and is cannot converted to an in on the fromMap method.
Recommended threads
- Cloud Functions Executions partially dow...
Yesterday we reported a wide Function-Downtime. Today we have the same - just not wide-spread across all functions. DEV is down - Prod still working. Its the s...
- Unable to access certain projects after ...
As attached, after upgrading to pro and relogin to the appwrite console, for certain projects I am met with the 401 error although I am the owner of the organiz...
- Custom Domain SSL Certificate Issue ( Ag...
I recently had a TLS issue in <#1398691595573792788> which got solved , but now again im facing a similar issue with SSL certificate n HTTP**S** stuff
