GameHighScore.fromJson constructor
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,
);
}