I want to update data in Firestore with Flutter.
My data is List<List<Map<String,dynamic>>>
This works (Map in Array):
await _firestore
          .collection("postsByPostId")
          .doc(postId)
          .update(
            {
              "imageTags": [
                {
                  "1": "this works",
                },
                {
                  "2": "this works",
                },
              ],
            },
          )
          .then((value) => print("Post Updated"))
          .catchError(
            (error) => print("Failed to update post: $error"),
          );
but this makes the app crash : (Map in Array in Array)
await _firestore
          .collection("postsByPostId")
          .doc(postId)
          .update(
            {
              "imageTags": [
                [
                  {
                    "1": "this doesn't works",
                  },
                ],
                [
                  {
                    "2": "this doesn't works",
                  },
                ],
              ],
            },
          )
          .then((value) => print("Post Updated"))
          .catchError(
            (error) => print("Failed to update post: $error"),
          );
My goal is too update data with :
List<List<Map<String,dynamic>>> postReadyListOfTag = [
                            [
                              {
                                "positionOrientation": "topLeft",
                                "text": "text",
                                "markUpText": "markUpText",
                                "topPositionedPercentage": 10.0,
                                "bottomPositionedPercentage": 5.0,
                                "rightPositionedPercentage": 5.0,
                                "leftPositionedPercentage": 10.0,
                              },
                            ],
                            [
                              {
                                "positionOrientation": "topLeft",
                                "text": "text",
                                "markUpText": "markUpText",
                                "topPositionedPercentage": 10.0,
                                "bottomPositionedPercentage": 5.0,
                                "rightPositionedPercentage": 5.0,
                                "leftPositionedPercentage": 10.0,
                              },
                            ],
                          ];
How can I please achieve that ?