TierAnchor.fromJson constructor
Factory constructor to parse from JSON.
Implementation
factory TierAnchor.fromJson(Map<String, dynamic> json) {
return TierAnchor(
name: json['name'] != null
? AchievementTier.fromString(json['name'])
: null,
threshold: json['threshold'] as int?,
);
}