Assign.fromSnapshot constructor
Assign.fromSnapshot(
- DocumentSnapshot<
Object?> snapshot
Implementation
factory Assign.fromSnapshot(DocumentSnapshot snapshot) {
final json = snapshot.data() as Map<String, dynamic>;
return Assign.fromJson(json, snapshot.id);
}