toStructuredContent method
Implementation
Map<String, Object?> toStructuredContent() => {
'summary': summary,
if (warnings.isNotEmpty) 'warnings': warnings,
if (nextSteps.isNotEmpty) 'nextSteps': nextSteps,
if (data != null) ...data!,
};