ShibaOriginal post
Rank 2: Process
final User user = User.fromMap(context.req.body );
PowerShell
type 'List<dynamic>' is not a subtype of type 'Map<String, dynamic>'#0 new User.fromMap (package:dart_appwrite/src/models/user.dart:93)#1 main (package:starter_template/main.dart:14)#2 action.<anonymous closure> (file:///usr/local/server/src/server.dart:114)#3 _rootRun (dart:async/zone.dart:1399)JSON
{"$id":"65da8663ee6b6e2802ec", "25T00:14:28.175 00:00","email":"anika-von@pollich.info","phone":"","emailVerification":false,"phoneVerification":false,"prefs":[],"accessedAt":""}Summary
Developers are encountering an issue where `context.req.body` returns a list instead of a map. The error indicates a mismatch in types. To resolve this, update the JSON input to have `"prefs":{}` instead of `"prefs":[]`.