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