toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (cachedContent != null) 'cachedContent': cachedContent!,
  if (contents != null) 'contents': contents!,
  if (generationConfig != null) 'generationConfig': generationConfig!,
  if (labels != null) 'labels': labels!,
  if (modelArmorConfig != null) 'modelArmorConfig': modelArmorConfig!,
  if (safetySettings != null) 'safetySettings': safetySettings!,
  if (systemInstruction != null) 'systemInstruction': systemInstruction!,
  if (toolConfig != null) 'toolConfig': toolConfig!,
  if (tools != null) 'tools': tools!,
};