toJson method

Map<String, dynamic> toJson()

Implementation

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