PlayerInfo.fromJson(- Map<String, dynamic> json
)
Implementation
PlayerInfo.fromJson(Map<String, dynamic> json) {
durationInformation = json['durationInformation'] != null
? DurationInformation.fromJson(json['durationInformation'])
: null;
difficultyInformation = json['difficultyInformation'] != null
? DifficultyInformation.fromJson(json['difficultyInformation'])
: null;
minutesPlayed = json['minutesPlayed'];
questionsAnswered = json['questionsAnswered'];
elo = json['elo'];
questionsRightAnswered = json['questionsRightAnswered'];
categoryInformation = json['categoryInformation'] != null
? CategoryInformation.fromJson(json['categoryInformation'])
: null;
username = json['username'];
}