toStructuredContent method

Map<String, Object?> toStructuredContent()

Implementation

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