Iam new to appwrite and i found a tutorial, where this function works, but in my case it doesn`t. I get the error "A value of type 'Account' can't be assigned to a variable of type 'Response'."
Future _getAccount()async{
try{
Response<dynamic> res = await account.get();//A value of type 'Account' can't be assigned to a variable of type 'Response<dynamic>'.
return User.fromJson(res.data);
}catch(e){
throw(e);
}
}
Any ideas? Thanks