EmbeddingList.fromMap constructor

EmbeddingList.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory EmbeddingList.fromMap(Map<String, dynamic> map) {
  return EmbeddingList(
    total: map['total'],
    embeddings: List<Embedding>.from(
        map['embeddings'].map((p) => Embedding.fromMap(p))),
  );
}