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 (tools != null) 'tools': tools!,
    };