PlayerScoreResponse.fromJson constructor
PlayerScoreResponse.fromJson(
- Map json_
Implementation
PlayerScoreResponse.fromJson(core.Map json_)
: this(
beatenScoreTimeSpans: json_.containsKey('beatenScoreTimeSpans')
? (json_['beatenScoreTimeSpans'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
formattedScore: json_.containsKey('formattedScore')
? json_['formattedScore'] as core.String
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
leaderboardId: json_.containsKey('leaderboardId')
? json_['leaderboardId'] as core.String
: null,
scoreTag: json_.containsKey('scoreTag')
? json_['scoreTag'] as core.String
: null,
unbeatenScores: json_.containsKey('unbeatenScores')
? (json_['unbeatenScores'] as core.List)
.map((value) => PlayerScore.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);