Choice.fromMap constructor
Creates a Choice from decoded map data.
Implementation
factory Choice.fromMap(Map<String, dynamic> data) => Choice(
text: data['text'],
message: data['message'],
index: data['index'] as int,
logprobs: data['logprobs'] as dynamic,
finishReason: data['finish_reason'] as String?,
);