FileDeleteResponse.fromBoolean constructor

FileDeleteResponse.fromBoolean(
  1. String id,
  2. bool success, {
  3. String? error,
})

Create from boolean result (Anthropic style)

Implementation

factory FileDeleteResponse.fromBoolean(String id, bool success,
    {String? error}) {
  return FileDeleteResponse(
    id: id,
    object: 'file',
    deleted: success,
    error: error,
  );
}