toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (codeExecutionResult != null)
    'codeExecutionResult': codeExecutionResult!,
  if (executableCode != null) 'executableCode': executableCode!,
  if (fileData != null) 'fileData': fileData!,
  if (functionCall != null) 'functionCall': functionCall!,
  if (functionResponse != null) 'functionResponse': functionResponse!,
  if (inlineData != null) 'inlineData': inlineData!,
  if (text != null) 'text': text!,
  if (thought != null) 'thought': thought!,
  if (thoughtSignature != null) 'thoughtSignature': thoughtSignature!,
  if (videoMetadata != null) 'videoMetadata': videoMetadata!,
};