You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'List<dynamic>' is not a subtype of type 'Map<dynamic, dynamic>'#0 JsonMapper._deserializeObject (package:dart_json_mapper/src/mapper.dart:954:9)#1 JsonMapper._deserializeObject.<anonymous closure> (package:dart_json_mapper/src/mapper.dart:1035:13)#2 JsonMapper._enumeratePublicProperties (package:dart_json_mapper/src/mapper.dart:593:14)#3 JsonMapper._deserializeObject (package:dart_json_mapper/src/mapper.dart:1000:5)#4 JsonMapper.deserialize (package:dart_json_mapper/src/mapper.dart:53:21)
The issue is related to PageImpl.content which is generic.
Any tips on how to solve this?
Thanks
The text was updated successfully, but these errors were encountered:
digows
changed the title
Error with type generics
Error with generic type
Jul 10, 2024
Hello,
I have these Dart class:
When I try to deserialize this sample json:
via:
JsonMapper.deserialize<PageImpl<Advertising>>(json)
I got this error:
The issue is related to PageImpl.content which is generic.
Any tips on how to solve this?
Thanks
The text was updated successfully, but these errors were encountered: