0 purchases
typed firestore
typed_firestore #
Typed firestore entity.
Usage #
abstract class Car extends DocData implements Built<Car, CarBuilder> {
static Serializer<Car> get serializer => _$carSerializer;
String get title;
@nullable
String get nullableField;
Car._();
factory Car([updates(CarBuilder b)]) = _$Car;
}
@SerializersFor(const [
Car,
])
Serializers serializers = _$serializers;
final firestore = new TypedFirestore(
Firestore.instance,
(serializers.toBuilder()..addPlugin(StandardJsonPlugin())).build(),
);
final CollRef<Car> cars = firestore.collection<Car>('cars');
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.