OpenAICompletionModelChoice.fromMap constructor
This method is used to convert a Map<String, dynamic> object to a OpenAICompletionModelChoice object.
Implementation
factory OpenAICompletionModelChoice.fromMap(Map<String, dynamic> json) {
return OpenAICompletionModelChoice(
text: json['text'],
index: json['index'],
logprobs: json['logprobs'],
finishReason: json['finishReason'],
);
}