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