AchievementUpdateResponse.fromJson constructor

AchievementUpdateResponse.fromJson(
  1. Map json_
)

Implementation

AchievementUpdateResponse.fromJson(core.Map json_)
    : this(
        achievementId: json_.containsKey('achievementId')
            ? json_['achievementId'] as core.String
            : null,
        currentState: json_.containsKey('currentState')
            ? json_['currentState'] as core.String
            : null,
        currentSteps: json_.containsKey('currentSteps')
            ? json_['currentSteps'] as core.int
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        newlyUnlocked: json_.containsKey('newlyUnlocked')
            ? json_['newlyUnlocked'] as core.bool
            : null,
        updateOccurred: json_.containsKey('updateOccurred')
            ? json_['updateOccurred'] as core.bool
            : null,
      );