toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': id,
    'userId': userId,
    'companyId': companyId,
    'totalXp': totalXp,
    'level': level,
    'currentLevelXp': currentLevelXp,
    'xpToNextLevel': xpToNextLevel,
    'streak': streak,
    'lastActivityDate': lastActivityDate?.toIso8601String(),
    'createdAt': createdAt?.toIso8601String(),
    'updatedAt': updatedAt?.toIso8601String(),
  };
}