fromJson static method

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

Creates a object from a json

Implementation

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