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