toMap method

Map<String, dynamic> toMap()

Converts the UserModel object to a map for sending data to the server.

Implementation

Map<String, dynamic> toMap() {
  return {
    'uid': uid,
    'name': name,
    'email': email,
    'password': password,
    'highest_score': highestScore,
    'highest_score_classic': highestScoreClassic,
  };
}