toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (formattedScore != null) 'formattedScore': formattedScore!,
  if (formattedScoreRank != null) 'formattedScoreRank': formattedScoreRank!,
  if (kind != null) 'kind': kind!,
  if (player != null) 'player': player!,
  if (scoreRank != null) 'scoreRank': scoreRank!,
  if (scoreTag != null) 'scoreTag': scoreTag!,
  if (scoreValue != null) 'scoreValue': scoreValue!,
  if (timeSpan != null) 'timeSpan': timeSpan!,
  if (writeTimestampMillis != null)
    'writeTimestampMillis': writeTimestampMillis!,
};