toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (currentExperiencePoints != null)
    'currentExperiencePoints': currentExperiencePoints!,
  if (currentLevel != null) 'currentLevel': currentLevel!,
  if (kind != null) 'kind': kind!,
  if (lastLevelUpTimestampMillis != null)
    'lastLevelUpTimestampMillis': lastLevelUpTimestampMillis!,
  if (nextLevel != null) 'nextLevel': nextLevel!,
};