LeaderboardConfigurationDetail.fromJson constructor

LeaderboardConfigurationDetail.fromJson(
  1. Map _json
)

Implementation

LeaderboardConfigurationDetail.fromJson(core.Map _json) {
  if (_json.containsKey("iconUrl")) {
    iconUrl = _json["iconUrl"];
  }
  if (_json.containsKey("kind")) {
    kind = _json["kind"];
  }
  if (_json.containsKey("name")) {
    name = new LocalizedStringBundle.fromJson(_json["name"]);
  }
  if (_json.containsKey("scoreFormat")) {
    scoreFormat =
        new GamesNumberFormatConfiguration.fromJson(_json["scoreFormat"]);
  }
  if (_json.containsKey("sortRank")) {
    sortRank = _json["sortRank"];
  }
}