AchievementConfiguration.fromJson constructor
AchievementConfiguration.fromJson(
- Map json_
Implementation
AchievementConfiguration.fromJson(core.Map json_)
: this(
achievementType: json_.containsKey('achievementType')
? json_['achievementType'] as core.String
: null,
draft: json_.containsKey('draft')
? AchievementConfigurationDetail.fromJson(
json_['draft'] as core.Map<core.String, core.dynamic>)
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
initialState: json_.containsKey('initialState')
? json_['initialState'] as core.String
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
published: json_.containsKey('published')
? AchievementConfigurationDetail.fromJson(
json_['published'] as core.Map<core.String, core.dynamic>)
: null,
stepsToUnlock: json_.containsKey('stepsToUnlock')
? json_['stepsToUnlock'] as core.int
: null,
token:
json_.containsKey('token') ? json_['token'] as core.String : null,
);