toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (totalDuration != null) json['total_duration'] = totalDuration;
if (currentSessionAttempts != null) {
json['current_session_attempts'] = currentSessionAttempts;
}
if (currentSessionFailedAttempts != null) {
json['current_session_failed_attempts'] = currentSessionFailedAttempts;
}
if (last24HourAttempts != null) {
json['last24_hour_attempts'] = last24HourAttempts;
}
if (last24HourFailedAttempts != null) {
json['last24_hour_failed_attempts'] = last24HourFailedAttempts;
}
return json;
}