AssistantModel.fromJson constructor

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

Implementation

factory AssistantModel.fromJson(Map<String, dynamic> json) => AssistantModel(
  id: json["id"],
  object: json["object"],
  createdAt: json["created_at"],
  name: json["name"],
  description: json["description"],
  model: json["model"],
  instructions: json["instructions"],
  tools: List<Tool>.from(json["tools"].map((x) => Tool.fromJson(x))),
  fileIds: List<dynamic>.from(json["file_ids"].map((x) => x)),
  metadata: Metadata.fromJson(json["metadata"]),
);