toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  "name": name,
  "description": description,
  "instructions" : instructions,
  "model": model,
  "tools": List<dynamic>.from(tools.map((x) => x.toJson())),
  "file_ids": List<dynamic>.from(fileIds.map((x) => x)),
};