toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  "id": id,
  "object": object,
  "created_at": createdAt,
  "thread_id": threadId,
  "role": role,
  "content": List<dynamic>.from(content.map((x) => x.toJson())),
  "file_ids": List<dynamic>.from(fileIds.map((x) => x)),
  "assistant_id": assistantId,
  "run_id": runId,
  "metadata": metadata.toJson(),
};