toJson method
Implementation
Map<String, dynamic> toJson() => {
"id": id,
"object": object,
"created_at": createdAt,
"name": name,
"description": description,
"model": model,
"instructions": instructions,
"tools": List<Tool>.from(tools.map((x) => x)),
"file_ids": List<String>.from(fileIds.map((x) => x)),
"metadata": metadata.toJson(),
};