toJson method

Map<String, dynamic> toJson()

Converts to JSON.

Implementation

Map<String, dynamic> toJson() => {
  if (codeInterpreter != null) 'code_interpreter': codeInterpreter!.toJson(),
  if (fileSearch != null) 'file_search': fileSearch!.toJson(),
};