title: Unhandled Exception: type 'String' is not a subtype of type 'List<dynamic>' in type cast
body: <p>Here are the codes that i need description</p>
  <pre><code>Future&lt;void&gt; fetchAndSetOrders() async {
  
    const _myUrl =
        'https://shop-960ca-default-rtdb.firebaseio.com/OrderContainer.json';
  
    final response = await http.get(Uri.parse(_myUrl));
    final extractedData = json.decode(response.body) as Map&lt;String, dynamic&gt;;
  
    List&lt;OrderModel&gt; orderFromServer = [];
  
    extractedData.forEach((key, value) {
  
      print(value['orderList']);
  
      orderFromServer.add(OrderModel(
        dateTime: DateTime.parse(value['dateTime']),
        orderCost: value['orderCost'],
        orderedId: key,
  
        orderedList: (value['orderList'] as List&lt;dynamic&gt;)
            .map((e) =&gt; CartIModel(
                  cartId: e['cartId'],
                  cartPrice: e['cartPrice'],
                  cartTitle: e['cartTitle'],
                  cartQuantity: e['cartQuantity'],
                ))
            .toList(),
      ));
    });
  
    _items = orderFromServer.reversed.toList();
  
    notifyListeners();
  }
  </code></pre>
  <p>Print result:</p>
  <blockquote>
  <p>({cartId: 2022-03-26 00:33:44.960313, cartTitle: Programmer, cartPrice: 56.0, cartQuantity: 1}, {cartId: 2022-03-26 00:33:46.964685, cartTitle: zoom5, cartPrice: 345.0, cartQuantity: 1})</p>
  </blockquote>