Provides a SerializerPlugin
to convert the data json received from cloud_firestore
with types (GeoPoint
and TimeStamp
) into common types such as DateTime
and a built value of type GeoPoint
final serializers = (Serializers().toBuilder()
..applyPlugin(StandardJsonPlugin())
..applyPlugin(FirestoreSerializerPlugin())
).build();
final myDataType = serializers.deserialize(myDoc.data());
Provides a built value for messages received by the firebase_messaging package
BasicMessagePayload
orMessagePayload
NotificationPayload
Serializer
for the Local
type of dart
Serializer
for the specified type. Specifically, it does not serialize and deserialize the specified type
final serializers = (Serializers().toBuilder()..addSerializer(ByPassSerializer<TimeStamp>())).build();