built_firebase 1.0.0 copy "built_firebase: ^1.0.0" to clipboard
built_firebase: ^1.0.0 copied to clipboard

discontinued
outdated

Serializers and built values for services inherent to firebase ( cloud firestore | messaging )

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 or MessagePayload
  • 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();
3
likes
100
pub points
0%
popularity

Publisher

unverified uploader

Serializers and built values for services inherent to firebase ( cloud firestore | messaging )

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

built_collection, built_value, cloud_firestore, flutter, pure_extensions

More

Packages that depend on built_firebase