OpenAIFileModel class final

This class is used to represent an OpenAI file.

Annotations
  • @immutable

Constructors

OpenAIFileModel({required String id, required int bytes, required DateTime createdAt, required String fileName, required String purpose})
This class is used to represent an OpenAI file.
const
OpenAIFileModel.fromMap(Map<String, dynamic> map)
This class is used to represent an OpenAI file. This method is used to convert a Map<String, dynamic> object to a OpenAIFileModel object.
factory

Properties

bytes int
The size of the file in bytes.
final
createdAt DateTime
The date the file was created.
final
fileName String
The name of the file.
final
hashCode int
The hash code for this object.
no setteroverride
id String
The ID of the file. This is used to reference the file in other API calls.
final
purpose String
The purpose of the file.
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
toString() String
A string representation of this object.
override

Operators

operator ==(covariant OpenAIFileModel other) bool
The equality operator.
override