Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: type List<dynamic>' is not a subtype of type 'List<String> #224 #226

Closed
wants to merge 1 commit into from

Conversation

Gajjar-Mohit
Copy link

@Gajjar-Mohit Gajjar-Mohit commented Dec 30, 2024

##Fix: type List' is not a subtype of type 'List #224

What does this PR do?

Earlier I was also facing this issue List<dynamic>' is not a subtype of type 'List<String> I checked the issues on appwrite/sdk-for-flutter and it was also faced by other developers, so I fix the two issues are as follows:

While using account!.createEmailPasswordSession();
Unhandled Exception: type 'List<dynamic>' is not a subtype of type 'List<String>' new Session.fromMap (package:appwrite/src/models/session.dart:152:31) Account.createEmailPasswordSession (package:appwrite/services/account.dart:646:27)

While using account.create(userId: ID.unique(), name: name, email: email, password: password);
Unhandled Exception: type 'List<dynamic>' is not a subtype of type 'List<String>' E/flutter (29288): #0 new User.fromMap (package:appwrite/src/models/user.dart:95:29) E/flutter (29288): #1 Account.create (package:appwrite/services/account.dart:56:24)

Related PRs and Issues

type List<dynamic>' is not a subtype of type 'List<String> (#224)

Have you read the Contributing Guidelines on issues?

YES

Copy link

This library is auto-generated by the Appwrite SDK Generator, and does not accept pull requests directly. To learn more about how you can help us improve this SDK, please check the contributing guide.

@github-actions github-actions bot closed this Dec 30, 2024
@Gajjar-Mohit Gajjar-Mohit deleted the Gajjar-Mohit-#224 branch December 30, 2024 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant