GameHighScore.fromJson constructor

GameHighScore.fromJson(
  1. Map<String, dynamic> json
)

De-serializes a GameHighScore object from a JSON map

Implementation

factory GameHighScore.fromJson(Map<String, dynamic> json) {
  return GameHighScore(
    position: json['position'] as int,
    user: User.fromJson(json['user'] as Map<String, dynamic>),
    score: json['score'] as int,
  );
}