toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (codeInterpreter != null) {
    json['code_interpreter'] = codeInterpreter!.toJson();
  }
  if (fileSearch != null) {
    json['file_search'] = fileSearch!.toJson();
  }
  return json;
}