You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a struct that looks like the code below.
I've also written a generic class, and a function "loadItems()" to read items from firestore (See code below)
When the snapshotdata is decoded to the type that T represents, the documentID isn't mapped to any of the fields in the struct.
I've search around a fair bit and can't find any solution that works for me since I'm using generics i can just assign it in the loop where i decode the data.
I have a struct that looks like the code below.
I've also written a generic class, and a function "loadItems()" to read items from firestore (See code below)
When the snapshotdata is decoded to the type that T represents, the documentID isn't mapped to any of the fields in the struct.
I've search around a fair bit and can't find any solution that works for me since I'm using generics i can just assign it in the loop where i decode the data.
The text was updated successfully, but these errors were encountered: