BatchEmbedTextResponse.fromJson constructor

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

Implementation

factory BatchEmbedTextResponse.fromJson(Map<String, dynamic> json) {
  return BatchEmbedTextResponse(
    embeddings:
        decodeListMessage(json['embeddings'], Embedding.fromJson) ?? [],
  );
}