OpenAIAudioModel class final

This class represents the audio model of the OpenAI API, which is used and get returned while using the OpenAIAudio methods.

Annotations
  • @immutable

Constructors

OpenAIAudioModel({required String text})
This class represents the audio model of the OpenAI API, which is used and get returned while using the OpenAIAudio methods.
const
OpenAIAudioModel.fromMap(Map<String, dynamic> json)
This is used to convert a Map<String, dynamic> object to a OpenAIAudioModel object.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
The text response from the audio requests. This is the only field that is returned from the API.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
This method used to convert the OpenAIAudioModel to a Map<String, dynamic> object.
toString() String
A string representation of this object.
override

Operators

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