toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (achievementType != null) 'achievementType': achievementType!,
      if (description != null) 'description': description!,
      if (experiencePoints != null) 'experiencePoints': experiencePoints!,
      if (formattedTotalSteps != null)
        'formattedTotalSteps': formattedTotalSteps!,
      if (id != null) 'id': id!,
      if (initialState != null) 'initialState': initialState!,
      if (isRevealedIconUrlDefault != null)
        'isRevealedIconUrlDefault': isRevealedIconUrlDefault!,
      if (isUnlockedIconUrlDefault != null)
        'isUnlockedIconUrlDefault': isUnlockedIconUrlDefault!,
      if (kind != null) 'kind': kind!,
      if (name != null) 'name': name!,
      if (revealedIconUrl != null) 'revealedIconUrl': revealedIconUrl!,
      if (totalSteps != null) 'totalSteps': totalSteps!,
      if (unlockedIconUrl != null) 'unlockedIconUrl': unlockedIconUrl!,
    };