Profile.fromObject constructor
Profile.fromObject(
- Map data
Implementation
factory Profile.fromObject(Map data){
return Profile(
uid: data['uid'] ?? '',
email: data['email'],
phoneNumber: data['phoneNumber'],
displayName: data['displayName'],
disabled: data['disabled'],
photoURL: data['photoURL'],
incomplete: data['incomplete'] ?? true,
roles: data['roles'] ?? {},
);
}