Choice.fromMap constructor

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

Implementation

factory Choice.fromMap(Map<String, dynamic> json) {
  return Choice(
    text: json['text'],
    index: json['index'],
    finishReason: json['finish_reason'],
  );
}