ChatChoice.fromMap constructor

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

Implementation

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