PlayerLeaderboardScore.fromJson constructor

PlayerLeaderboardScore.fromJson(
  1. Map json_
)

Implementation

PlayerLeaderboardScore.fromJson(core.Map json_)
    : this(
        friendsRank: json_.containsKey('friendsRank')
            ? LeaderboardScoreRank.fromJson(
                json_['friendsRank'] as core.Map<core.String, core.dynamic>)
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        leaderboardId: json_.containsKey('leaderboard_id')
            ? json_['leaderboard_id'] as core.String
            : null,
        publicRank: json_.containsKey('publicRank')
            ? LeaderboardScoreRank.fromJson(
                json_['publicRank'] as core.Map<core.String, core.dynamic>)
            : null,
        scoreString: json_.containsKey('scoreString')
            ? json_['scoreString'] as core.String
            : null,
        scoreTag: json_.containsKey('scoreTag')
            ? json_['scoreTag'] as core.String
            : null,
        scoreValue: json_.containsKey('scoreValue')
            ? json_['scoreValue'] as core.String
            : null,
        socialRank: json_.containsKey('socialRank')
            ? LeaderboardScoreRank.fromJson(
                json_['socialRank'] as core.Map<core.String, core.dynamic>)
            : null,
        timeSpan: json_.containsKey('timeSpan')
            ? json_['timeSpan'] as core.String
            : null,
        writeTimestamp: json_.containsKey('writeTimestamp')
            ? json_['writeTimestamp'] as core.String
            : null,
      );