LeaderboardScores.fromJson constructor
LeaderboardScores.fromJson(
- Map json_
Implementation
LeaderboardScores.fromJson(core.Map json_)
: this(
items: json_.containsKey('items')
? (json_['items'] as core.List)
.map((value) => LeaderboardEntry.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
nextPageToken: json_.containsKey('nextPageToken')
? json_['nextPageToken'] as core.String
: null,
numScores: json_.containsKey('numScores')
? json_['numScores'] as core.String
: null,
playerScore: json_.containsKey('playerScore')
? LeaderboardEntry.fromJson(
json_['playerScore'] as core.Map<core.String, core.dynamic>)
: null,
prevPageToken: json_.containsKey('prevPageToken')
? json_['prevPageToken'] as core.String
: null,
);