firestoreDataRules function
The project's data rules (data_rules/{projectId}), now and on every
change.
Implementation
Stream<DataRules> firestoreDataRules(FirebaseFirestore firestore, String projectId) => firestore
.collection('data_rules')
.doc(projectId)
.snapshots()
.map((snapshot) => DataRules.fromJson(snapshot.data()));