UserModel.fromMap constructor

UserModel.fromMap(
  1. dynamic map
)

Factory constructor for creating a UserModel instance from a map.

Implementation

factory UserModel.fromMap(map) {
  return UserModel(
    uid: map['uid'],
    name: map['name'],
    email: map['email'],
    password: map['password'],
    highestScore: map['highest_score'],
    highestScoreClassic: map['highest_score_classic'],
  );
}