GptImage class

Annotations
  • @JsonSerializable(includeIfNull: false)

Constructors

GptImage({String? url, String? b64Json})
GptImage.fromJson(Map<String, dynamic> json)
factory

Properties

b64Json String?
The base64-encoded JSON of the generated image, if response_format is b64_json.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String?
The URL of the generated image, if response_format is url (default).
getter/setter pair

Methods

getImageBytes() Future<Uint8List>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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