PlayerScoreResetResponse.fromJson constructor

PlayerScoreResetResponse.fromJson(
  1. Map json_
)

Implementation

PlayerScoreResetResponse.fromJson(core.Map json_)
    : this(
        definitionId: json_.containsKey('definitionId')
            ? json_['definitionId'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        resetScoreTimeSpans: json_.containsKey('resetScoreTimeSpans')
            ? (json_['resetScoreTimeSpans'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );