Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kdy1/typed_firestore
Typed firstore for flutter
https://github.com/kdy1/typed_firestore
Last synced: 26 days ago
JSON representation
Typed firstore for flutter
- Host: GitHub
- URL: https://github.com/kdy1/typed_firestore
- Owner: kdy1
- License: apache-2.0
- Created: 2018-09-25T02:18:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-12T12:05:42.000Z (almost 4 years ago)
- Last Synced: 2024-12-06T23:10:22.754Z (29 days ago)
- Language: Dart
- Homepage: https://pub.dartlang.org/packages/typed_firestore
- Size: 30.3 KB
- Stars: 11
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# typed_firestore
Typed firestore entity.
## Usage
```dart
abstract class Car extends DocData implements Built {
static Serializer 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 cars = firestore.collection('cars');
```