AchievementDefinition.fromJson constructor
AchievementDefinition.fromJson(
- Map json_
Implementation
AchievementDefinition.fromJson(core.Map json_)
: this(
achievementType: json_.containsKey('achievementType')
? json_['achievementType'] as core.String
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
experiencePoints: json_.containsKey('experiencePoints')
? json_['experiencePoints'] as core.String
: null,
formattedTotalSteps: json_.containsKey('formattedTotalSteps')
? json_['formattedTotalSteps'] as core.String
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
initialState: json_.containsKey('initialState')
? json_['initialState'] as core.String
: null,
isRevealedIconUrlDefault:
json_.containsKey('isRevealedIconUrlDefault')
? json_['isRevealedIconUrlDefault'] as core.bool
: null,
isUnlockedIconUrlDefault:
json_.containsKey('isUnlockedIconUrlDefault')
? json_['isUnlockedIconUrlDefault'] as core.bool
: null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
revealedIconUrl: json_.containsKey('revealedIconUrl')
? json_['revealedIconUrl'] as core.String
: null,
totalSteps: json_.containsKey('totalSteps')
? json_['totalSteps'] as core.int
: null,
unlockedIconUrl: json_.containsKey('unlockedIconUrl')
? json_['unlockedIconUrl'] as core.String
: null,
);