var response =
await Dio().get(‘örnekLink.com’);
List<HotelModel> _hotelList = [];
if (response.statusCode == 200) {
debugPrint(response.data.toString());
jsonDecode(response.data);
_hotelList = (response.data as List).map((e) => HotelModel.fromMap(e)).toList();====*(hatayi burada aliyorum run timeda)*
}
return _hotelList;
} on DioError catch (e) {
return Future.error(e.message);
casterror (type ‘ınternallinkedhashmap<string, dynamic>’ is not a subtype of type ‘list<dynamic>’ in type cast ) aldigim hata