LeaderboardConfiguration.fromJson constructor

LeaderboardConfiguration.fromJson(
  1. Map _json
)

Implementation

LeaderboardConfiguration.fromJson(core.Map _json) {
  if (_json.containsKey("draft")) {
    draft = new LeaderboardConfigurationDetail.fromJson(_json["draft"]);
  }
  if (_json.containsKey("id")) {
    id = _json["id"];
  }
  if (_json.containsKey("kind")) {
    kind = _json["kind"];
  }
  if (_json.containsKey("published")) {
    published =
        new LeaderboardConfigurationDetail.fromJson(_json["published"]);
  }
  if (_json.containsKey("scoreMax")) {
    scoreMax = _json["scoreMax"];
  }
  if (_json.containsKey("scoreMin")) {
    scoreMin = _json["scoreMin"];
  }
  if (_json.containsKey("scoreOrder")) {
    scoreOrder = _json["scoreOrder"];
  }
  if (_json.containsKey("token")) {
    token = _json["token"];
  }
}