Run.fromJson constructor
Implementation
factory Run.fromJson(Map<String, dynamic> json) => Run(
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<Tool>.from(json["tools"].map((x) => Tool.fromJson(x))),
fileIds: List<String>.from(json["file_ids"].map((x) => x)),
metadata: Metadata.fromJson(json["metadata"]),
);