groqChoiceFromJson static method

GroqChoice groqChoiceFromJson(
  1. Map<String, dynamic> json
)

Parses the choice information from the json

Implementation

static GroqChoice groqChoiceFromJson(Map<String, dynamic> json) {
  return GroqChoice(
    messageData: GroqParser.groqMessageFromJson(json["message"]),
    finishReason: json['finish_reason'] as String?,
  );
}