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