LeaderboardEntry.fromJson constructor

LeaderboardEntry.fromJson(
  1. Map json_
)

Implementation

LeaderboardEntry.fromJson(core.Map json_)
    : this(
        formattedScore: json_.containsKey('formattedScore')
            ? json_['formattedScore'] as core.String
            : null,
        formattedScoreRank: json_.containsKey('formattedScoreRank')
            ? json_['formattedScoreRank'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        player: json_.containsKey('player')
            ? Player.fromJson(
                json_['player'] as core.Map<core.String, core.dynamic>)
            : null,
        scoreRank: json_.containsKey('scoreRank')
            ? json_['scoreRank'] as core.String
            : null,
        scoreTag: json_.containsKey('scoreTag')
            ? json_['scoreTag'] as core.String
            : null,
        scoreValue: json_.containsKey('scoreValue')
            ? json_['scoreValue'] as core.String
            : null,
        timeSpan: json_.containsKey('timeSpan')
            ? json_['timeSpan'] as core.String
            : null,
        writeTimestampMillis: json_.containsKey('writeTimestampMillis')
            ? json_['writeTimestampMillis'] as core.String
            : null,
      );