AchievementUpdateRequest.fromJson constructor

AchievementUpdateRequest.fromJson(
  1. Map json_
)

Implementation

AchievementUpdateRequest.fromJson(core.Map json_)
    : this(
        achievementId: json_.containsKey('achievementId')
            ? json_['achievementId'] as core.String
            : null,
        incrementPayload: json_.containsKey('incrementPayload')
            ? GamesAchievementIncrement.fromJson(json_['incrementPayload']
                as core.Map<core.String, core.dynamic>)
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        setStepsAtLeastPayload: json_.containsKey('setStepsAtLeastPayload')
            ? GamesAchievementSetStepsAtLeast.fromJson(
                json_['setStepsAtLeastPayload']
                    as core.Map<core.String, core.dynamic>)
            : null,
        updateType: json_.containsKey('updateType')
            ? json_['updateType'] as core.String
            : null,
      );