audioResponseFromJson static method

GroqAudioResponse audioResponseFromJson(
  1. Map<String, dynamic> json
)

Parses the audio response information from the json

Implementation

static GroqAudioResponse audioResponseFromJson(Map<String, dynamic> json) {
  return GroqAudioResponse(
    requestId: json['x_groq']['id'] as String,
    text: json['text'] as String,
  );
}