Map<String, dynamic> toJson() { final attemptDurationSeconds = this.attemptDurationSeconds; return { if (attemptDurationSeconds != null) 'attemptDurationSeconds': attemptDurationSeconds, }; }