firestore_serializable 0.0.20 copy "firestore_serializable: ^0.0.20" to clipboard
firestore_serializable: ^0.0.20 copied to clipboard

(still experimental) Generate fromMap(), fromSnapshot() and toMap() methods for your Firestore data models using this library. Based on source_gen, similar to json_serializable

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add firestore_serializable

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  firestore_serializable: ^0.0.20

Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:firestore_serializable/firestore_serializable.dart';
4
likes
20
pub points
0%
popularity

Publisher

verified publisherdartlang.rocks

(still experimental) Generate fromMap(), fromSnapshot() and toMap() methods for your Firestore data models using this library. Based on source_gen, similar to json_serializable

Homepage

License

BSD-2-Clause (LICENSE)

Dependencies

analyzer, build, firestore_annotations, source_gen

More

Packages that depend on firestore_serializable