flutter error Unhandled Exception: type ‘_InternalLinkedHashMap’ is not a subtype of type ‘List’ in type cast

when i run my code i get this error [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: type ‘_InternalLinkedHashMap‘ is not a subtype of type ‘List’ in type cast. so i am not getting any data. Can you help me? its my place api class PlaceApi { static Future<http.Response> GetAllPlace() async { try { var response = await http.get(AppConstant.getUri(“places/getallplaces”), headers: … Read more

flutter – Data model failure in dart _TypeError (type ‘_InternalLinkedHashMap’ is not a subtype of type ‘String?’)

I cannot figure out the way to adapt my dart model to my json. I constantly get the error in BreedInfo class, field height: _TypeError (type ‘_InternalLinkedHashMap<String, dynamic>’ is not a subtype of type ‘String?’) I do not know why it does not accept a response if dynamic is supposed to identify the data type … Read more