NewAssistantModel.fromJson constructor

NewAssistantModel.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory NewAssistantModel.fromJson(Map<String, dynamic> json) => NewAssistantModel(
  name: json["name"],
  description: json["description"],
  instructions: json['instructions'],
  model: json["model"],
  tools: List<Tool>.from(json["tools"].map((x) => Tool.fromJson(x))),
  fileIds: List<String>.from(json["file_ids"].map((x) => x)),
);