UploadedFile class

Annotations
  • @JsonSerializable()

Constructors

UploadedFile(String id, String object, int bytes, int createdAt, String filename, String? format, String purpose)
UploadedFile.fromJson(Map<String, dynamic> json)
factory

Properties

bytes int
The size of the file in bytes.
final
createdAt int
Timestamp when this file was created.
final
filename String
String representation of this file.
final
format String?
Whether this is TEXT_JSONL or TEXT_HASH_JSONL
final
hashCode int
The hash code for this object.
no setterinherited
id String
The unique id of this file.
final
object String
A string description of this file, i.e. "file"
final
purpose String
The purpose this file was uploaded for, e.g. "search" or "answer"
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited