toMap method

Map<String, dynamic> toMap()

This method used to convert the OpenAIAudioModel to a Map<String, dynamic> object.

could be useful if you want to save an audio response to a database.

Implementation

Map<String, dynamic> toMap() {
  return {
    'text': text,
  };
}