toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  "id": id,
  "object": object,
  "created_at": createdAt,
  "assistant_id": assistantId,
  "thread_id": threadId,
  "status": status,
  "started_at": startedAt,
  "expires_at": expiresAt,
  "cancelled_at": cancelledAt,
  "failed_at": failedAt,
  "completed_at": completedAt,
  "last_error": lastError,
  "model": model,
  "instructions": instructions,
  "tools": List<dynamic>.from(tools.map((x) => x)),
  "file_ids": List<dynamic>.from(fileIds.map((x) => x)),
  "metadata": metadata.toJson(),
};