ThreadAndRunResponse.fromJson constructor
ThreadAndRunResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ThreadAndRunResponse.fromJson(Map<String, dynamic> json) => ThreadAndRunResponse(
id: json["id"],
object: json["object"],
createdAt: json["created_at"],
assistantId: json["assistant_id"],
threadId: json["thread_id"],
status: json["status"],
startedAt: json["started_at"],
expiresAt: json["expires_at"],
cancelledAt: json["cancelled_at"],
failedAt: json["failed_at"],
completedAt: json["completed_at"],
lastError: json["last_error"],
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"]),
);