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