OpenAIImageData class final

This class is used to represent an OpenAI image data.

Annotations
  • @immutable

Constructors

OpenAIImageData({required String? url, required String? b64Json, required String? revisedPrompt})
This class is used to represent an OpenAI image data.
const
OpenAIImageData.fromMap(Map<String, dynamic> json)
This method is used to convert a Map<String, dynamic> object to a OpenAIImageData object.
factory

Properties

b64Json String?
The b64Json data.
final
hashCode int
The hash code for this object.
no setteroverride
haveB64Json bool
Weither the image have a b64Json result.
no setter
haveRevisedPrompt bool
Weither the image have a revised prompt.
no setter
haveUrl bool
Weither the image have a URL result.
no setter
revisedPrompt String?
The revised prompt.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String?
The URL of the image.
final

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 OpenAIImageData other) bool
The equality operator.
override