I am running into an issue when I am trying to update my Firestore database with a new updated value for my email field which is part of a List of Maps in my Firestore database.
I am trying to update the email field with a specific email id.
I have included my Firestore collection and the code I am using to update the Firestore document and I have also included the values which the object has with the updated information.
When it tries to run the below code snippet it gives me the error “Invalid argument: Instance of ‘AppointmentSlot’”
Can someone help with why I am getting this error and the way to resolve it? Any help would greatly be appreciated.
Code snippet where I update the document for the date "3-17-2022"