Choice.fromJson constructor

Choice.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Choice.fromJson(Map<String, dynamic> json) => Choice(
  text: json["text"],
  index: json["index"],
  logprobs: json["logprobs"],
  finishReason: json["finish_reason"],
);