built_firebase
Firebase Firestore
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());
Firebase Messaging
Provides a built value for messages received by the firebase_messaging package
BasicMessagePayload
orMessagePayload
NotificationPayload
Common features
LocaleSerializer
Serializer
for the Local
type of dart
ByPassSerializer
Serializer
for the specified type. Specifically, it does not serialize and deserialize the specified type
final serializers = (Serializers().toBuilder()..addSerializer(ByPassSerializer<TimeStamp>())).build();