[firestore_serialize] Support for Timestamps
Closed this issue · 4 comments
You added support in 724a838, but removed it again in d5282b1 with the intention to improve compatibility with firebase_api and better generated output.
I'm using cloud_firestore and according to this item in the changelog, Timestamp seems to be the preferred way (in general though, not just that library).
This package is intended to be used together with https://github.com/dartclub/firestore_dart/tree/master/firestore_api, which converts Timestamp to DateTime
That's really unfortunate because I can't write an easy workaround for the onSnapshot function as I did with onMap.
What was the issue though? Adding another Datatype for compatibility with other libraries doesn't reduce the compatibility with that one. And the generated output doesn't seem to get convoluted too much since you can just pass on the Timestamp as is without touching it
@ciriousjoker support added
Thank's a lot!