EmbedTextRequest.fromJson constructor

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

Implementation

factory EmbedTextRequest.fromJson(Map<String, dynamic> json) {
  return EmbedTextRequest(
    model: json['model'] ?? '',
    text: json['text'] ?? '',
  );
}