PlayerScoreListResponse.fromJson constructor

PlayerScoreListResponse.fromJson(
  1. Map json_
)

Implementation

PlayerScoreListResponse.fromJson(core.Map json_)
    : this(
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        submittedScores: json_.containsKey('submittedScores')
            ? (json_['submittedScores'] as core.List)
                .map((value) => PlayerScoreResponse.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );