GameHighScores.fromJson constructor

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

Parse from a json

Implementation

factory GameHighScores.fromJson(Map<String, dynamic> json) => GameHighScores(
  scores: List<GameHighScore>.from((json['scores'] ?? []).map((item) => GameHighScore.fromJson(item)).toList()),
  extra: json['@extra'],
  clientId: json['@client_id'],
);