OpenAIEditModelChoice.fromMap constructor
This class is used to represent a choice generated by an OpenAI edit. This method is used to convert a Map<String, dynamic> object to a OpenAIEditModelChoice object.
Implementation
factory OpenAIEditModelChoice.fromMap(Map<String, dynamic> json) {
return OpenAIEditModelChoice(
text: json['text'],
index: json['index'],
);
}