UserProfileModel.fromFirestore constructor

UserProfileModel.fromFirestore(
  1. DocumentSnapshot<Object?> doc
)

Implementation

factory UserProfileModel.fromFirestore(DocumentSnapshot doc) {
  final data = doc.data() as Map<String, dynamic>;
  return UserProfileModel.fromJson({'id': doc.id, ...data});
}