sakibguy / worked-issues

arget medi a[rpescriptionmedicie] &ssets[dr] (reeeverse._ax:p)
2 stars 0 forks source link

[ORG] SG-MYALICE: Unhandled Exception: type 'List<dynamic>' is not a subtype of type 'List<String>?' #77

Closed sakibguy closed 1 year ago

sakibguy commented 1 year ago

PROB

[ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: type 'List<dynamic>' is not a subtype of type 'List<String>?'
E/flutter (22729): #0      new ChatDataSource.fromJson (package:myalice/models/responseModels/chatResponse.dart:122:10)
E/flutter (22729): #1      new ChatResponse.fromJson.<anonymous closure> (package:myalice/models/responseModels/chatResponse.dart:18:29)
E/flutter (22729): #2      List.forEach (dart:core-patch/growable_array.dart:416:8)
E/flutter (22729): #3      new ChatResponse.fromJson (package:myalice/models/responseModels/chatResponse.dart:17:40)
E/flutter (22729): #4      ChatApiController.getChats.<anonymous closure> (package:myalice/controllers/apiControllers/chatApiController.dart:303:34)
E/flutter (22729): #5      ChatApiController.getChats.<anonymous closure> (package:myalice/controllers/apiControllers/chatApiController.dart:299:15)
E/flutter (22729): #6      _rootRunUnary (dart:async/zone.dart:1434:47)
E/flutter (22729): #7      _CustomZone.runUnary (dart:async/zone.dart:1335:19)
E/flutter (22729): <asynchronous suspension>

SNaP

Screenshot (225) Screenshot (226) Screenshot (227)

sakibguy commented 1 year ago

SOL

Commented incompatible types.

Screenshot (228)