Profile.fromObject constructor

Profile.fromObject(
  1. 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'] ?? {},
  );
}