Embedding.fromJson constructor
Creates an Embedding from JSON.
Implementation
factory Embedding.fromJson(Map<String, dynamic> json) {
return Embedding(
object: json['object'] as String,
embedding: (json['embedding'] as List<dynamic>)
.map((e) => (e as num).toDouble())
.toList(),
index: json['index'] as int,
);
}