Choice.fromJson constructor

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

Implementation

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