ImageData class

Constructors

ImageData({String? b64Json, String? url, String? revisedPrompt})
ImageData.fromJson(Map<String, dynamic> j)
factory

Properties

b64Json → String?
base-64 PNG/JPEG/WEBP (always for gpt-image-1, optional for others).
final
bytes → Uint8List?
Convenience: decode b64_json if present.
no setter
hashCode → int
The hash code for this object.
no setterinherited
revisedPrompt → String?
Only for DALL·E-3.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
url → String?
HTTPS link (when response_format=="url" for DALL·E-2/3).
final

Methods

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

Operators

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