Task.fromSnapshot constructor

Task.fromSnapshot(
  1. DocumentSnapshot<Object?> snapshot
)

Implementation

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