FileDeleteResponse class

File deletion response that works across providers

Constructors

FileDeleteResponse.new({required String id, String object = 'file', required bool deleted, String? error})
const
FileDeleteResponse.fromBoolean(String id, bool success, {String? error})
Create from boolean result (Anthropic style)
factory
FileDeleteResponse.fromOpenAI(Map<String, dynamic> json)
Create from OpenAI format
factory

Properties

deleted bool
Whether the file was successfully deleted.
final
error String?
Error message if deletion failed.
final
hashCode int
The hash code for this object.
no setterinherited
id String
The file identifier.
final
object String
The object type.
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
toOpenAIJson() Map<String, dynamic>
Convert to OpenAI format
toString() String
A string representation of this object.
inherited

Operators

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