Assign.fromSnapshot constructor

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

Implementation

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